itty-sockets 0.2.0 → 0.2.1
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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
Tiny messaging client in under
|
|
19
|
+
Tiny messaging client in under 450 bytes. No backend needed.
|
|
20
20
|
|
|
21
21
|
## Example (using ittysockets.io public channels)
|
|
22
22
|
```ts
|
|
23
|
-
import { connect } from 'itty-sockets' // ~
|
|
23
|
+
import { connect } from 'itty-sockets' // ~422 bytes
|
|
24
24
|
|
|
25
25
|
// connect to a channel (optionally echo messages back to yourself)
|
|
26
26
|
const foo = connect('my-secret-room-name', { echo: true })
|