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:
Doron Somech
2020-01-18 18:44:50 +02:00
parent b120ec33a9
commit 60ef14f80b
6 changed files with 50 additions and 3 deletions

View File

@@ -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