https://github.com/workwithpact/cf-socket-client
A simple client to interface with our CloudFlare Workers backed WebSocket server.
https://github.com/workwithpact/cf-socket-client
chat cloudflare-worker cloudflare-workers websocket websockets
Last synced: about 1 year ago
JSON representation
A simple client to interface with our CloudFlare Workers backed WebSocket server.
- Host: GitHub
- URL: https://github.com/workwithpact/cf-socket-client
- Owner: workwithpact
- License: mit
- Created: 2021-09-17T13:52:59.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-05-18T21:19:39.000Z (about 4 years ago)
- Last Synced: 2025-04-08T01:37:25.464Z (about 1 year ago)
- Topics: chat, cloudflare-worker, cloudflare-workers, websocket, websockets
- Language: TypeScript
- Homepage:
- Size: 14.6 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CF Socket Client
A simple client to interface with our [CloudFlare Workers backed WebSocket server](https://github.com/workwithpact/cf-socket-server).
## Getting started
First, install this package by running `npm i cf-socket-client`, or if you're using yarn, `yarn add cf-socket-client`.
## Examples
- [Chat demo](https://websockets.workwithpact.com/chat)
- [Poll demo](https://websockets.workwithpact.com/poll)
- [_Ephemeral_ Poll demo](https://websockets.workwithpact.com/ephemeral)
- [Live map of active users](https://websockets.workwithpact.com/livemap), build using the ephemeral poll functionality