improve websocket implementation
This commit is contained in:
@@ -7,6 +7,14 @@
|
||||
#define WS_MAX_RETRIES 10
|
||||
#define WS_POLL_INTERVAL 60 // WS_POLL_INTERVAL/2 seconds
|
||||
#define WS_MAX_CONN 4
|
||||
#define WS_BUFFER_SIZE 512
|
||||
|
||||
#define OP_CONT 0x00
|
||||
#define OP_TEXT 0x01
|
||||
#define OP_BINARY 0x02
|
||||
#define OP_CLOSE 0x08
|
||||
#define OP_PING 0x09
|
||||
#define OP_PONG 0x0A
|
||||
|
||||
struct ws_state {
|
||||
bool active;
|
||||
|
||||
Reference in New Issue
Block a user