mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 11:31:56 +01:00
problem: ws_engine don't support WS RFC close control msg
Solution: when peer send a close msg, close the connection
This commit is contained in:
@@ -84,6 +84,7 @@ class msg_t
|
||||
pong = 8,
|
||||
subscribe = 12,
|
||||
cancel = 16,
|
||||
close_cmd = 20,
|
||||
credential = 32,
|
||||
routing_id = 64,
|
||||
shared = 128
|
||||
@@ -126,6 +127,7 @@ class msg_t
|
||||
bool is_leave () const;
|
||||
bool is_ping () const;
|
||||
bool is_pong () const;
|
||||
bool is_close_cmd () const;
|
||||
|
||||
// These are called on each message received by the session_base class,
|
||||
// so get them inlined to avoid the overhead of 2 function calls per msg
|
||||
|
||||
Reference in New Issue
Block a user