protocol: Don't call it legacy

This commit is contained in:
Tom Wiesing 2023-12-04 11:28:54 +01:00
parent 044a4a11e1
commit b2231f6307
No known key found for this signature in database
2 changed files with 24 additions and 24 deletions

View file

@ -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