We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b9005f commit 6f506c6Copy full SHA for 6f506c6
README.md
@@ -37,6 +37,8 @@ Production ready.
37
Usage
38
-----
39
40
+Use [http-parser](https://github.com/joyent/http-parser) for parsing headers. This library parse only websocket frames.
41
+
42
This parser library works with several callbacks, which the user may set up at application initialization time.
43
44
```c
@@ -66,8 +68,8 @@ settings.on_frame_end = websocket_frame_end;
66
68
67
69
parser = malloc(sizeof(websocket_parser));
70
websocket_parser_init(parser);
-// Attention! Sets your 'data' after websocket_parser_init
-parser->data = my_frame_struct; // set your custom data after websocket_parser_init() function
71
+// Attention! Sets your <data> after websocket_parser_init
72
+parser->data = my_frame_struct;
73
```
74
75
Basically, callback looks like that:
0 commit comments