laravel / reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.
https://reverb.laravel.com
MIT License
1.02k stars 71 forks source link

WebSocket connection to 'wss://chat-laravel.mydomain.com:9889/app/oknjjl0bzpsq17de2ebn?protocol=7&client=js&version=8.4.0-rc2&flash=false' failed: #141

Closed raj3292 closed 4 months ago

raj3292 commented 4 months ago

Reverb Version

@beta

Laravel Version

11.0

PHP Version

8.2.10

Description

I have an SSL certificate from Certbot and use the reverb@beta version. I am getting an error while connecting to the socket. I am using an Apache Digital Ocean server. The port is added in the ufw apache. Let me know if anything wrong my side.

This is in my .env file

REVERB_APP_ID=898313
REVERB_APP_KEY="${REVERB_KEY}"
REVERB_APP_SECRET="${REVERB_SEC}"
REVERB_HOST=chat-laravel.mydomain.com
REVERB_HOSTNAME=chat-laravel.mydomain.com
REVERB_PORT=9889
REVERB_SCHEME=https

Steps To Reproduce

Change port and start command using port & hostname but still facing the same issue. I have rebuild and cleared the cache as well on every change.

driesvints commented 4 months ago

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!

boris-glumpler commented 4 months ago

I'm getting the same error, actually. I'm running Reverb with the --debug flag and am getting this type error in the console:

Laravel\Reverb\Protocols\Pusher\Http\Controllers\PusherController::Laravel\Reverb\Protocols\Pusher\Http\Controllers\{closure}(): Argument #1 ($message) must be of type string, Ratchet\RFC6455\Messaging\Message given, called in .../app/vendor/ratchet/rfc6455/src/Messaging/MessageBuffer.php on line 254

  at vendor/laravel/reverb/src/Protocols/Pusher/Http/Controllers/PusherController.php:34