X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ws.c;h=c25c3f108a173f62edf79222c6099057e1625978;hb=15c3a8b1ef47127d30d8b5f26f9d7622a0b72656;hp=a7582794a0617acd6e9ceb3f03c17c5890785d84;hpb=904f490e7d70653bb54b53d3bc7c7bead45be844;p=src%2Fapp-framework-binder.git diff --git a/src/afb-ws.c b/src/afb-ws.c index a7582794..c25c3f10 100644 --- a/src/afb-ws.c +++ b/src/afb-ws.c @@ -200,6 +200,14 @@ void afb_ws_hangup(struct afb_ws *ws) aws_disconnect(ws, 1); } +/* + * Is the websocket 'ws' still connected ? + */ +int afb_ws_is_connected(struct afb_ws *ws) +{ + return ws->ws != NULL; +} + /* * Sends a 'close' command to the endpoint of 'ws' with the 'code' and the * 'reason' (that can be NULL and that else should not be greater than 123