pusher / pusher-websocket-dotnet

Pusher Channels Client Library for .NET
MIT License
111 stars 113 forks source link

Changed host #150

Closed Vahidev111 closed 4 months ago

Vahidev111 commented 4 months ago

Hi guys, I can't connect to local host web socket(laravel) Pusher stay in connecting status and not connected... Would you please advise me?

My code: PusherOptions options = new PusherOptions { Cluster = PUSHER_APP_CLUSTER, Host = "127.0.0.1:6001", Encrypted = true, }; pusher = new Pusher(PUSHER_APP_KEY, options); pusher.Connected += OnConnected; pusher.Disconnected += OnDisconnected; pusher.ConnectionStateChanged += PusherConnectionStateChanged; pusher.Error += PusherError; pusher.Subscribed += Subscribed; try { await pusher.ConnectAsync().ConfigureAwait(false); channel = await pusher.SubscribeAsync(PUSHER_CHANNEL_NAME).ConfigureAwait(false); pusher.BindAll(GeneralListener);

} catch (Exception error) { MessageBox.Show(error.Message); }


Logs: Connection state: Connecting PusherClient.OperationTimeoutException: Waiting for 'pusher:connection_established' has timed out after 27.00 second(s).

benw-pusher commented 4 months ago

We aren't able to provide support for custom hosts - the library is designed for use with the official Channels service.