mirror of
				https://github.com/FluuxIO/go-xmpp.git
				synced 2025-10-31 08:23:44 -07:00 
			
		
		
		
	Fix test for ws connection
This commit is contained in:
		 Wichert Akkerman
					Wichert Akkerman
				
			
				
					committed by
					
						 Mickaël Rémond
						Mickaël Rémond
					
				
			
			
				
	
			
			
			 Mickaël Rémond
						Mickaël Rémond
					
				
			
						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) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user