ing
This commit is contained in:
parent
bcfd74812b
commit
724ed780bf
|
@ -143,12 +143,14 @@ func (s *server) handleRequest(ctx *fasthttp.RequestCtx) {
|
|||
s.handleError(ctx, http.StatusNotAcceptable, fmt.Errorf("Server: Handshake err"))
|
||||
return
|
||||
}
|
||||
logging.Logger().Debug(fmt.Sprintf("Server: Client is Handshake."))
|
||||
|
||||
s.upgrader.Upgrade(ctx, responseHeader, func(conn *websocket.Conn, err error) {
|
||||
if err != nil {
|
||||
s.handleError(ctx, fasthttp.StatusInternalServerError, err)
|
||||
return
|
||||
}
|
||||
logging.Logger().Debug(fmt.Sprintf("Server: Client is Upgrade."))
|
||||
|
||||
socketCTX := socketHandler.SocketContext(s.ctx)
|
||||
soc := newSocket(socketHandler, socketCTX, conn, socketID)
|
||||
|
|
Loading…
Reference in New Issue
Block a user