ConnectWebsocketSession dials the remote specified in the opts and creates new websocket session. Deprecated: Use DialWebsocket instead.
(opts *DialOptions)
| 168 | // |
| 169 | // Deprecated: Use DialWebsocket instead. |
| 170 | func ConnectWebsocketSession(opts *DialOptions) (*WebsocketSession, error) { |
| 171 | cfg := config.New() |
| 172 | cfg.Websocket.HandshakeTimeout = opts.Timeout |
| 173 | cfg.Websocket.ReadBufferSize = opts.ReadBufferSize |
| 174 | cfg.Websocket.WriteBufferSize = opts.WriteBufferSize |
| 175 | |
| 176 | return DialWebsocket(opts.BaseURL, cfg) |
| 177 | } |
| 178 | |
| 179 | // NewWebsocketSession creates new sockjs.Session from existing |
| 180 | // websocket connection. |
nothing calls this directly
no test coverage detected