Fix typo in readme

This commit is contained in:
Endeavorance 2025-04-21 15:18:34 -04:00
parent 9d3e99336f
commit c9f628ee2c

View file

@ -23,7 +23,7 @@ const mySocket = new ManagedSocket("wss://socket.my-server.web");
Sends the provided data over the socket.
The data can be of any shaoe as long as it can be serialized (using `JSON.stringify` under the hood).
The data can be of any shape as long as it can be serialized (using `JSON.stringify` under the hood).
If `send()` is called on a `ManagedSocket` instance that is not currently connected, it will be enqueued to be sent once the connection is reestablished.
@ -143,4 +143,4 @@ Shorthand for `serialize(createDataMessage(data))
### `isCatastrophicCloseCode(code: SocketCloseCode)`
Returns `true` if the provided `SocketCloseCode` is a non-reconnect close code, or `false` otherwise.
Returns `true` if the provided `SocketCloseCode` is a non-reconnect close code, or `false` otherwise.