You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,10 @@
22
22
23
23
Sockette is a tiny (369 bytes) wrapper around `WebSocket` that will automatically reconnect if the connection is lost!
24
24
25
-
Upon creation, the `WebSocket` is returned directly, exposing the native `close` and `send` methods.
26
-
27
25
In addition to attaching [additional API methods](#api), Sockette allows you to **reuse** instances, avoiding the need to redeclare all event listeners.
28
26
27
+
You have direct access to the (current) underlying `WebSocket` within every `EventListener` callback (via `event.target`).
0 commit comments