api/http/handler/websocket/hijack.go
Function writeTCPToWebSocket
has 5 return statements (exceeds 4 allowed). Open
Open
func writeTCPToWebSocket(websocketConn *websocket.Conn, tcpConn net.Conn, errorChan chan error) {
var mu sync.Mutex
out := make([]byte, readerBufferSize)
input := make(chan string)
pingTicker := time.NewTicker(pingPeriod)