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;
|
||||
str_init (&response);
|
||||
process_json_rpc (self->client.ctx, data, len, &response);
|
||||
ws_handler_send (&self->handler,
|
||||
WS_OPCODE_TEXT, response.str, response.len);
|
||||
if (response.len)
|
||||
ws_handler_send (&self->handler,
|
||||
WS_OPCODE_TEXT, response.str, response.len);
|
||||
str_free (&response);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user