relic-websockets
Installation
SKILL.md
Relic WebSockets & Connection Hijacking
Relic handlers return a Result, which can be a Response, WebSocketUpgrade, or Hijack. WebSockets and hijacking are built-in -- no extra packages needed.
WebSocket connections
Return a WebSocketUpgrade to upgrade an HTTP connection to a WebSocket:
app.get('/ws', (Request req) {
return WebSocketUpgrade((webSocket) async {
webSocket.sendText('Welcome!');