You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should support web sockets in Relic to make it possible to communicate in real-time. We can add an abstract WebSocketRoute, which will automatically upgrade the connection. A helper method for this based on shelf_web_socket can be placed in the serverpod_relic_helpers package (see #2495).
The handleCall method is overridden to call an abstract method that handles the upgraded connection.
Activity
brianquinlan commentedon Dec 5, 2024
You may want to consider using the
WebSocketinterface - it has simpler semantics thanWebSocketChannel.But I don't think that it is a big deal.
nielsenko commentedon Aug 4, 2025
With #3625 a route can return a
ConnectContextin its handler (with `ctx.connect(..)), which allow it to setup web-socket handling.Note: Interface is different. There is no separate method, but a different returned context from the handler. Also, we use the new
WebSocket(https://pub.dev/packages/web_socket) overWebSocketChannel.