Hi,
I want pushpin to send an empty message to all listeners every 10s.
I added header “Grip-Keep-Alive: \n; format=cstring; timeout=30” in the response my backend server send to pushpin.
I did not receive any empty message in my listener connected to pushpin.
I use pushpin docker image 1.40.1
Does anyone know how to make it work ?
Thank you for your help.
That header looks right. Maybe it’s a quoting issue wherever you are writing the header value? For example, in the programming language you’re using you may need to write \\n
instead of \n
, or else the header value may contain an actual newline and misbehave.
Hi jkarneges,
Thank you for your answer.
In fact the header worked properly but some client libraries do not compute it because it is empty (no type and no data).
I changed the header to “Grip-Keep-Alive”, “event: KEEP_ALIVE\ndata: \n\n; format=cstring; timeout=30” and I properly received it in my client handler.