forked from jshiffer/go-xmpp
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