patterns/websocket #559
Replies: 3 comments 5 replies
-
|
Would be nice if |
Beta Was this translation helpful? Give feedback.
-
|
import type { Context, ServerWebSocket } from 'elysia' export type myWs = ServerWebSocket<{ id: string; data: Context }> where do i import ServerWebSocket from? While Elysia Preach full type safety. I am really struggling here just to determine Type, Documentation is incomplete, Module "elysia" has no exported member ServerWebSocket. And Default Import Does give some wired error |
Beta Was this translation helpful? Give feedback.
-
|
is there a way to get all the connections to my ws server |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
patterns/websocket
Elysia's WebSocket implementation. Start by declaring WebSocket route with "ws". WebSocket is a realtime protocol for communication between your client and server.
https://elysiajs.com/patterns/websocket
Beta Was this translation helpful? Give feedback.
All reactions