handleWebsocketConn passes a Rabbit connection to the Websocket handler.
(conn *rabbit.Conn)
| 99 | |
| 100 | // handleWebsocketConn passes a Rabbit connection to the Websocket handler. |
| 101 | func 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. |
no test coverage detected