A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ably/laravel-broadcaster/issues/48 below:

Using ->toOthers() results in a "Ably error: Malformed message; invalid connectionKey" Same as issue 38 · Issue #48 · ably/laravel-broadcaster · GitHub

Hi!

Seems I am getting this as well when using the method in Laravel. I have all the latest packages and Laravel 11 latest.

broadcast(new ChatMessageCreated($message))->toOthers();

Result in:

[2024-09-15 01:38:06] local.ERROR: Ably error: Malformed message; invalid connectionKey {"userId":1,"exception":"[object] (Illuminate\Broadcasting\BroadcastException(code: 0): Ably error: Malformed message; invalid connectionKey at /vendor/ably/laravel-broadcaster/src/AblyBroadcaster.php:187)

I check the X-Socket-Id, it is there. And the socket is in the payload sent to the Rest api

I am really not sure what causes this. I do see that have a couple of websocket initiating, I did connect to different channels as I have a channel fro chat, for announcement and for some other events.

So not sure why the socket id a invalid connectionkey.

I check both on the front end and in the AblyBroadcaster.php and the key are exactly the same.

┆Issue is synchronized with this Jira Task by Unito


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4