u
This commit is contained in:
parent
cc7fd41607
commit
08183e6b2c
@ -7,7 +7,7 @@ const my = {
|
||||
export default {
|
||||
initSocket (url, reconnect = false) {
|
||||
if (!my.socket || (my.socket.readyState !== my.socket.OPEN && typeof url === 'string')) {
|
||||
console.log('WebSocket connecting...')
|
||||
console.log(`WebSocket is connecting to ${url}...`)
|
||||
my.socket = uni.connectSocket({
|
||||
url: url.replace(/^http/, 'ws'),
|
||||
complete: () => {},
|
||||
|
Loading…
Reference in New Issue
Block a user