mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-21 10:02:00 -08:00
Fix test for ws connection
This commit is contained in:
parent
06a76160c8
commit
a189748b9c
@ -23,7 +23,7 @@ func (t *WebsocketTransport) Connect() error {
|
||||
defer cancel()
|
||||
|
||||
wsConn, _, err := websocket.Dial(ctx, t.Config.Address, nil)
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
t.wsConn = wsConn
|
||||
t.netConn = websocket.NetConn(t.ctx, t.wsConn, websocket.MessageText)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user