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
Based on the Draft design of new WebSockets, a new WSBrokerHandler should be implemented as part of the new WebSocket subscription system, building upon the current WSHandler.
The new WSBrokerHandler should be created in router.go, similar to how the WSHandler is implemented. It can use a similar WSHandler approach:
The main difference in the creation of this handler is that it will use a single route with the Name "ws" and Pattern "/ws", but without a handler function, as specific subscriptions will be managed internally by the new WebSocketBroker.
The text was updated successfully, but these errors were encountered:
Guitarheroua
changed the title
[Access] Implement WSBrokerHandler component
[Access] Implement web socket handler for new web socket connection under /ws endpoint
Nov 12, 2024
Based on the Draft design of new WebSockets, a new
WSBrokerHandler
should be implemented as part of the new WebSocket subscription system, building upon the currentWSHandler
.The new
WSBrokerHandler
should be created in router.go, similar to how theWSHandler
is implemented. It can use a similarWSHandler
approach:flow-go/engine/access/rest/routes/websocket_handler.go
Lines 250 to 268 in 36f067d
A new
AddPubSubRoute
function should be added torouter.go
to separate the new WebSocket implementation from other REST API functionalities:flow-go/engine/access/rest/routes/router.go
Lines 63 to 79 in ce74abc
The main difference in the creation of this handler is that it will use a single route with the
Name
"ws" andPattern
"/ws", but without a handler function, as specific subscriptions will be managed internally by the newWebSocketBroker
.The text was updated successfully, but these errors were encountered: