Added enum for websocket opcodes

This commit is contained in:
Sergey Lyubka committed 2014-04-09 15:16:03 +01:00
1 parent 05d7b7c8bc
commit 464b895116
2 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -2639,7 +2639,7 @@ static void send_websocket_handshake_if_requested(struct mg_connection *conn) {
static void ping_idle_websocket_connection(struct connection *conn, time_t t) {
if (t - conn->ns_conn->last_io_time > MONGOOSE_USE_WEBSOCKET_PING_INTERVAL) {
mg_websocket_write(&conn->mg_conn, 0x9, "", 0);
mg_websocket_write(&conn->mg_conn, WEBSOCKET_OPCODE_PING, "", 0);
}
}
#else