mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
Fixed websocket example, and websocket callback calling logic.
This commit is contained in:
1 parent
65c1278975
commit
7690f9e34b
7 files changed
+95
-194
No files matched your search
+1
-1
@@ -1940,7 +1940,7 @@ static void write_to_client(struct connection *conn) {
|
||||
conn->num_bytes_sent += n;
|
||||
}
|
||||
|
||||
if (conn->endpoint_type == EP_USER) {
|
||||
if (conn->endpoint_type == EP_USER && !conn->mg_conn.is_websocket) {
|
||||
conn->mg_conn.wsbits = conn->flags & CONN_CLOSE ? 1 : 0;
|
||||
call_uri_handler(conn);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user