Closed dungfv closed 5 years ago
try this:
if your endpoint isn't https
add
`
into
info.plist`
Or try setTimeout
const Echo = new TnsEcho(options);
setTimeout(() => {
Echo.private('channel');
}, 1000);
Thanks for your help. It worked with setTimeout for my case. But why must setTimeout and need setTime for seconds for specific contexts, does it depend on network speed?
Rather it is a theme of the operating system, the optimal way to invoke Echo would be:
<Page @loaded="onLoaded">//Or the component that is GridLayout, etc
</Page>
created() {}, // Not
mounted(){}, // With timeout
methods: {
onLoaded() {
const Echo = new TnsEcho(options);
Echo.private('channel');
}
}
``` try
I known, thankyou verry much
I am using this plugin with Nativescript-Vue latest. It work fine on Android, but not working for IOS. I cannot connect to socket server, do not have any log. Even the sample application doesn't work for IOS