Skip to content

Commit 3220a9f

Browse files
committed
Merge branch 'master' of github.com:php-ion/websocket-parser
2 parents 213aa5b + bce1696 commit 3220a9f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ WebSocket frame parser
44

55
### Features
66
* No dependencies
7-
* Works with chunks of a data - no need to buffer the whole request
7+
* No internal buffering
8+
* No need to buffer the whole frame — works with chunks of a data
89

910
This is a parser for WebSocket frame-messages written in C (by [RFC6455](https://tools.ietf.org/html/rfc6455)).
1011
It does not make any syscalls nor allocations, it does not
@@ -33,8 +34,8 @@ These functions must match the signatures defined in the websocket-parser header
3334
3435
Returning a value other than 0 from the callbacks will abort message processing.
3536
36-
Initialize the `struct` using `http_parser_init()` and set the callbacks. That might look something
37-
like this for a request parser:
37+
One websocket_parser object is used per TCP connection. Initialize `websocket_parser` struct using `http_parser_init()` and set the callbacks. That might look something
38+
like this for a frame parser:
3839
```c
3940
websocket_parser_settings settings;
4041

0 commit comments

Comments
 (0)