Create a new Elysia WebSocket server IO instance
Elysia WebSocket instance from the ws/open callback
A new ElysiaWebSocketServerIO instance
import { Elysia } from 'elysia'import { createElysiaWebSocketIO } from 'kkrpc/elysia-websocket'new Elysia() .ws('/rpc', { open(ws) { const io = createElysiaWebSocketIO(ws) // Use io with RPCChannel... } }) Copy
import { Elysia } from 'elysia'import { createElysiaWebSocketIO } from 'kkrpc/elysia-websocket'new Elysia() .ws('/rpc', { open(ws) { const io = createElysiaWebSocketIO(ws) // Use io with RPCChannel... } })
Create a new Elysia WebSocket server IO instance