@stonyx/sockets 0.1.1-alpha.21 → 0.1.1-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -232,7 +232,7 @@ Configuration is read from `stonyx/config` under `sockets`:
|
|
|
232
232
|
| `new SocketClient()` | Singleton constructor |
|
|
233
233
|
| `async init()` | Discover handlers, connect, authenticate |
|
|
234
234
|
| `send(payload)` | Send a message to the server |
|
|
235
|
-
| `close()` |
|
|
235
|
+
| `close()` | Forcefully tear down the socket (remove listeners, terminate, null) |
|
|
236
236
|
| `reconnect()` | Reconnect (max 5 retries) |
|
|
237
237
|
| `reset()` | Close + clear all state (for testing) |
|
|
238
238
|
|
package/package.json
CHANGED