From 5b7205c9c1c04ae4224701ab714a7c685e5bcf11 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 18 Mar 2021 12:02:36 +0100 Subject: [PATCH] Drop "irc" WebSocket subprotocol The subprotocol hasn't been standardized yet. It looks like the standard is moving in another direction. --- server.go | 1 - 1 file changed, 1 deletion(-) diff --git a/server.go b/server.go index aacaf87..f709b54 100644 --- a/server.go +++ b/server.go @@ -198,7 +198,6 @@ func (s *Server) Serve(ln net.Listener) error { func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) { conn, err := websocket.Accept(w, req, &websocket.AcceptOptions{ OriginPatterns: s.HTTPOrigins, - Subprotocols: []string{"irc"}, }) if err != nil { s.Logger.Printf("failed to serve HTTP connection: %v", err)