Socket-passthrough
This commit is contained in:
@@ -76,7 +76,7 @@ export const makeSocket = (config: SocketConfig) => {
|
||||
url = new URL(`tcp://${MOBILE_ENDPOINT}:${MOBILE_PORT}`)
|
||||
}
|
||||
|
||||
const ws = config.mobile ? new MobileSocketClient(url, config) : new WebSocketClient(url, config)
|
||||
const ws = config.socket ? config.socket : config.mobile ? new MobileSocketClient(url, config) : new WebSocketClient(url, config)
|
||||
|
||||
ws.connect()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user