func (s *Socket) webSocketURL(f ui.Form) string {
	switch f.URL.Scheme {
	case "http":
		f.URL.Scheme = "ws"
	default:
		f.URL.Scheme = "wss"
	}
	jwt := s.user.JWT()
	f.Params.Add("access_token", jwt)
	f.URL.RawQuery = f.Params.Encode(s.dom)
	return f.URL.String()
}
// getWebSocketURL creates a websocket url from the form, changing it's scheme and adding an access_token.
getWebSocketURL creates a websocket url from the form, changing it's scheme and adding an access_token.
// getWebSocketURL creates a websocket url from the form changing it ' s scheme and adding an access_token .
func (s *Socket) webSocketURL(f ui.Form) string {
	switch f.URL.Scheme {
	case "http":
		f.URL.Scheme = "ws"
	default:
		f.URL.Scheme = "wss"
	}
	jwt := s.user.JWT()
	f.Params.Add("access_token", jwt)
	f.URL.RawQuery = f.Params.Encode(s.dom)
	return f.URL.String()
}
func ( s * Socket ) webSocketURL ( f ui . Form ) string { switch f . URL . Scheme { case " " : f . URL . Scheme = " " default : f . URL . Scheme = " " } jwt := s . user . JWT ( ) f . Params . Add ( " " , jwt ) f . URL . RawQuery = f . Params . Encode ( s . dom ) return f . URL . String ( ) }
getWebSocketURL creates a websocket url from the form, changing it's scheme and adding an access_token.
getWebSocketURL creates a websocket url from the form changing it ' s scheme and adding an access_token .