MCPcopy Create free account
hub / github.com/ebosas/microservices / handleWebsocketConn

Function handleWebsocketConn

cmd/server/server.go:101–105  ·  view source on GitHub ↗

handleWebsocketConn passes a Rabbit connection to the Websocket handler.

(conn *rabbit.Conn)

Source from the content-addressed store, hash-verified

99
100// handleWebsocketConn passes a Rabbit connection to the Websocket handler.
101func handleWebsocketConn(conn *rabbit.Conn) func(w http.ResponseWriter, r *http.Request) {
102 return func(w http.ResponseWriter, r *http.Request) {
103 handleWebsocket(w, r, conn)
104 }
105}
106
107// handleWebsocket starts two message readers (consumers), one consuming
108// a Rabbit queue and another reading from a Websocket connection.

Callers 1

mainFunction · 0.85

Calls 1

handleWebsocketFunction · 0.85

Tested by

no test coverage detected