diff --git a/src/Transports.ts b/src/Transports.ts index 159b6ec..58e1b97 100644 --- a/src/Transports.ts +++ b/src/Transports.ts @@ -258,7 +258,7 @@ export class WebSocketTransport extends HttpBasedTransport implements ITransport wx.connectSocket({url:url}); wx.onSocketOpen(function(res){ - transport.websocket = 'wx'; + transport.websocket = wx; if(isReconnect){ reslove() }