Don't respond to notifications
This commit is contained in:
parent
d35e733c6e
commit
b85d1d74a4
|
@ -2149,8 +2149,9 @@ client_ws_on_message (void *user_data,
|
||||||
struct str response;
|
struct str response;
|
||||||
str_init (&response);
|
str_init (&response);
|
||||||
process_json_rpc (self->client.ctx, data, len, &response);
|
process_json_rpc (self->client.ctx, data, len, &response);
|
||||||
ws_handler_send (&self->handler,
|
if (response.len)
|
||||||
WS_OPCODE_TEXT, response.str, response.len);
|
ws_handler_send (&self->handler,
|
||||||
|
WS_OPCODE_TEXT, response.str, response.len);
|
||||||
str_free (&response);
|
str_free (&response);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue