We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f41e67c commit 79438f7Copy full SHA for 79438f7
README.md
@@ -238,7 +238,8 @@ Both the server- and client-side `WebSocket` objects support the following API:
238
Event has no attributes.
239
- **`on(:message) { |event| }`** fires when the socket receives a message. Event
240
has one attribute, **`data`**, which is either a `String` (for text frames) or
241
- an `Array` of byte-sized integers (for binary frames).
+ an `Array` of unsigned integers, i.e. integers in the range `0..255` (for
242
+ binary frames).
243
- **`on(:error) { |event| }`** fires when there is a protocol error due to bad
244
data sent by the other peer. This event is purely informational, you do not
245
need to implement error recovery.
0 commit comments