File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ Production ready.
3737Usage
3838-----
3939
40+ Use [ http-parser] ( https://github.com/joyent/http-parser ) for parsing headers. This library parse only websocket frames.
41+
4042This parser library works with several callbacks, which the user may set up at application initialization time.
4143
4244``` c
@@ -66,8 +68,8 @@ settings.on_frame_end = websocket_frame_end;
6668
6769parser = malloc(sizeof(websocket_parser));
6870websocket_parser_init(parser);
69- // Attention! Sets your ' data' after websocket_parser_init
70- 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;
7173```
7274
7375Basically, callback looks like that:
You can’t perform that action at this time.
0 commit comments