mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Fixed spelling and formatting of README
This commit is contained in:
committed by
Roman Shtylman
parent
c54a46117e
commit
f2ab8d4ec5
@@ -15,7 +15,7 @@ shared by both
|
||||
|
||||
The parser can encode/decode packets, payloads, and payloads as binary
|
||||
with the following methods: `encodePacket`, `decodePacket`, `encodePayload`,
|
||||
`decodePayload`, `encodePayloadAsBinary`, `decodePayloadAsBinar`.
|
||||
`decodePayload`, `encodePayloadAsBinary`, `decodePayloadAsBinary`.
|
||||
|
||||
The browser-side parser also includes `encodePayloadAsArrayBuffer` and `encodePayloadAsBlob`.
|
||||
|
||||
@@ -111,8 +111,6 @@ Engine.IO Parser is a commonjs module, which means you can include it by using
|
||||
- `String` | `ArrayBuffer`: the packet to decode, has `type` and `data`
|
||||
- `String`: optional, the binary type
|
||||
|
||||
----
|
||||
|
||||
- `encodeBase64Packet`
|
||||
- Encodes a packet with binary data in a base64 string (`String`)
|
||||
- **Parameters**
|
||||
@@ -124,8 +122,6 @@ Engine.IO Parser is a commonjs module, which means you can include it by using
|
||||
- `String`: the base64 encoded message
|
||||
- `String`: optional, the binary type
|
||||
|
||||
----
|
||||
|
||||
- `encodePayload`
|
||||
- Encodes multiple messages (payload).
|
||||
- If any contents are binary, they will be encoded as base64 strings. Base64
|
||||
@@ -142,8 +138,6 @@ Engine.IO Parser is a commonjs module, which means you can include it by using
|
||||
- `String`: optional, the binary type
|
||||
- `Function`: callback, returns (`Object`: packet, `Number`:packet index, `Number`:packet total)
|
||||
|
||||
----
|
||||
|
||||
- `encodePayloadAsBinary`
|
||||
- Encodes multiple messages (payload) as binary.
|
||||
- **Parameters**
|
||||
|
||||
Reference in New Issue
Block a user