I use nopoll (http://www.aspl.es/nopoll/) for my C application to communicate with Meteor.
Meteor send periodically some ping
message.
When my application poll websocket, it replies with pong
message : everything is find.
Next, to avoid polling, I replace it by a callback initialized with sigaction(SIGIO, ...)
.
Then, when ping
is received, I send pong
, but sometimes, server stop sending ping
and no other message could be exchanged.
Is there any timeout between ping
and the associated pong
message.
Is there any mechanism to advertize myself of a connection loss, cause nopoll_conn_is_ok()
and nopoll_conn_is ready()
are always nopoll_true
.