Skip to content

Commit d6fd1a4

Browse files
authored
Update README.md
1 parent 384a35e commit d6fd1a4

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,21 @@ and send binary string
113113
114114
```c
115115
write(sock, frame, frame_len);
116-
```
116+
```
117+
118+
### UID
119+
120+
Macro WEBSOCKET_UUID contains unique ID for handshake
121+
122+
```c
123+
#define WEBSOCKET_UUID "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
124+
```
125+
126+
### Test frame
127+
128+
Raw frame: `\x81\x8Amask\x0B\x13\x12\x06\x08\x41\x17\x0A\x19\x00`
129+
Has mask: yes
130+
Mask: `mask`
131+
Payload: `frame data`
132+
Fin: yes
133+
Opcode: `WS_OP_TEXT`

0 commit comments

Comments
 (0)