protocol: Don't call it legacy
This commit is contained in:
parent
044a4a11e1
commit
b2231f6307
2 changed files with 24 additions and 24 deletions
|
|
@ -21,7 +21,7 @@ func (am ActionMap) Handle(auth *auth.Auth, conn *websocket.Connection) (name st
|
|||
// select based on the negotiated subprotocol
|
||||
switch conn.Subprotocol() {
|
||||
case "":
|
||||
return am.handleLegacyProtocol(auth, conn)
|
||||
return am.handleV1Protocol(auth, conn)
|
||||
default:
|
||||
<-conn.WritePrepared(msgUnknownSubprotocol)
|
||||
return "", errUnknownSubprotocol
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue