mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
cluster/websocket: Propagate code and reason to websocket_client_lost()
This allows to get visibility into the reason why ixwebsocket or the client decided to disconnect. Closed #4440
This commit is contained in:
parent
aaddeb19ad
commit
a61aff010f
11 changed files with 131 additions and 6 deletions
|
@ -131,6 +131,8 @@ struct WebSocketOpen {
|
|||
// A WebSocket client disconnected.
|
||||
struct WebSocketClose {
|
||||
std::string id;
|
||||
uint16_t code;
|
||||
std::string reason;
|
||||
};
|
||||
|
||||
// A WebSocket client send a message.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue