Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.tunnel可以返回json对象 但是console.log(app.tunnel.socketUrl)显示null(看正文) #44

Open
C635939636 opened this issue Jul 25, 2018 · 0 comments

Comments

@C635939636
Copy link

C635939636 commented Jul 25, 2018

console.log(app.tunnel);
console.log(JSON.stringify(tunnel););
console.log(app.tunnel.socketUrl);

//app.tunnel
Tunnel {serviceUrl: "https://mi4yyjel.qcloud.la/weapp/tunnel", socketUrl: null, status: "CONNECTING", open: ƒ, on: ƒ, …}
close
:
ƒ close()
emit
:
ƒ emitMessagePacket(messageType, messageContent)
isActive
:
ƒ isActive()
isClosed
:
ƒ isClosed()
isConnecting
:
ƒ isConnecting()
isReconnecting
:
ƒ isReconnecting()
on
:
ƒ registerEventHandler(eventType, eventHandler)
open
:
ƒ openConnect()
serviceUrl
:
"https://mi4yyjel.qcloud.la/weapp/tunnel"
socketUrl
:
"wss://mi4yyjel.ws.qcloud.la/qcloud/ws?tunnelId=4660fd8e-da23-48ab-88fc-6cb4aecc206e&tcId=125ecb3977c2fb8b405f53f15fb52fe2"
status
:
"ACTIVE"
proto
:
Object

//app.tunnel.socketUrl
{"serviceUrl":"https://mi4yyjel.qcloud.la/weapp/tunnel","socketUrl":null,"status":"CONNECTING"}

//app.tunnel.socketUrl
null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant