code: func NewWSServer(allowedOrigins []string, srv *Server) *http.Server {
  	return &http.Server{Handler: srv.WebsocketHandler(allowedOrigins)}
  }
docs: // NewWSServer creates a new websocket RPC server around an API provider.
  //
  // Deprecated: use Server.WebsocketHandler