Skip to content

Commit

Permalink
Clarify the content of data in binary frames
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoglan committed Jul 31, 2020
1 parent f41e67c commit 79438f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ Both the server- and client-side `WebSocket` objects support the following API:
Event has no attributes.
- **`on(:message) { |event| }`** fires when the socket receives a message. Event
has one attribute, **`data`**, which is either a `String` (for text frames) or
an `Array` of byte-sized integers (for binary frames).
an `Array` of unsigned integers, i.e. integers in the range `0..255` (for
binary frames).
- **`on(:error) { |event| }`** fires when there is a protocol error due to bad
data sent by the other peer. This event is purely informational, you do not
need to implement error recovery.
Expand Down

0 comments on commit 79438f7

Please sign in to comment.