@turnly/realtime v0.2.38
Realtime
Realtime is a shared module that exports the necessary libraries and configurations to create WebSocket servers in an easy and friendly way.
Currently, this module is used by Bifröst's main real-time events engine, which exposes several public and private connection channels. If you have to build a socket-based real-time server, this module will help you.
Installation
pnpm add @turnly/realtime
Usage
import { Realtime } from '@turnly/realtime'
const Server = new Realtime({ port: 3000 })
/**
* Create a channel to listen to events
*/
const queuing = Server.listen('/queuing')
/**
* Sets up the middleware
*/
queuing.use(new AuthGuard().use())
This example creates a WebSocket server, listening on port 3000, and creating an event channel.
You can now connect to localhost:3000/queuing
10 months ago
10 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
10 months ago
9 months ago
9 months ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
12 months ago
11 months ago
12 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
12 months ago
12 months ago
1 year ago
12 months ago
1 year ago
12 months ago
12 months ago
1 year ago
12 months ago
1 year ago
12 months ago
12 months ago
1 year ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago