How to send push notifications

Hi

How can I configure the mock server to send push notifications or multiple responses (with associated headers) for a single request?

For example: htp://request?set=a,b,c -> I get the response of ‘ok’ as well as three responses corresponding to ‘a=1’, ‘b=2’, ‘c=3’.

Alternatively we can have the client ‘poll’ periodically. In this case, how can I send dynamic responses depending on environment variables, with a piece of script?

Example: htp://request?set=a,b,c -> Response ‘ok’.
htp://request?poll -> Response ‘a=1’
htp://request?poll -> Response ‘b=2’
htp://request?poll -> Response ‘c=3’
htp://request?poll -> Response ‘’