Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

app stuck on connecting state #19

Open
heshesh2010 opened this issue Apr 12, 2021 · 3 comments
Open

app stuck on connecting state #19

heshesh2010 opened this issue Apr 12, 2021 · 3 comments

Comments

@heshesh2010
Copy link

Hi ,

app stuck on connecting state i'm using:

FlutterPusher getPusherClient() {
var options = PusherOptions(host: '10.0.2.2', port: 6001, encrypted: false);

return FlutterPusher('c48337f612554db6026d', options, lazyConnect: true, enableLogging: true);

}

void connect() {
pusherClient.connect(onConnectionStateChange: this.onConnectionStateChange);
}

@arlandclaudel
Copy link

Im not able to connect to my laravel-websockets server on local machine using vvalet domain name or computer IP.

`
wsHost = '192.168......';
FlutterPusher getPusherClient() {
PusherOptions options = PusherOptions(
host: wsHost, port: 6001, encrypted: true, cluster: 'us3');
return FlutterPusher(pusherAppKey, options,
lazyConnect: true, enableLogging: true);
}

echo = new Echo({
'broadcaster': 'pusher',
'client': pusherClient,
"wsHost": wsHost,
"httpHost": wsHost,
"wsPort": 6001,
'auth': {
"headers": {'Authorization': 'Bearer $token'}
},
'authEndpoint': 'https://$wsHost/api/broadcasting/auth',
"disableStats": true,
"forceTLS": true,
"enabledTransports": ['ws', 'wss']
});

`
Can anybody give me help ?

@nicolasvahidzein
Copy link

It is most likely your app id that is missing. I have that variable in my javascript frontend and it's missing in the flutter version.

@nicolasvahidzein
Copy link

Look at your CLI messages on the server. It should tell you.

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

No branches or pull requests

3 participants