Skip to content

Commit 6f506c6

Browse files
authored
Update README.md
1 parent 4b9005f commit 6f506c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Production ready.
3737
Usage
3838
-----
3939

40+
Use [http-parser](https://github.com/joyent/http-parser) for parsing headers. This library parse only websocket frames.
41+
4042
This 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
6769
parser = malloc(sizeof(websocket_parser));
6870
websocket_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

7375
Basically, callback looks like that:

0 commit comments

Comments
 (0)