0

I have a feeling I'm doing something very stupid but I cannot get the callback on useEchoPublic to fire no matter what I try

The event is structured like so, this is pulled straight from the browser logs

{"event":"test.event","data":"{\"message\":\"Hello World\"}","channel":"test"}

The reverb logs have the browser connecting in them as you would expect

` Connection Established ........................... 880887825.308775727
Message Received ................................. 880887825.308775727

1▕ { 2▕ "event": "pusher:subscribe", 3▕ "data": { 4▕ "auth": "", 5▕ "channel": "test" 6▕ } 7▕ }

Message Handled .................................. 880887825.308775727 `

My useEchoPublic call, as far as I'm aware, is formatted correctly

onMounted(() => { useEchoPublic( "test", "test.event", () => { console.log('Callback fired'); }, ); });

I have tried the above, I have tried providing the event name in an array, I have tried providing undefined and an empty array for the event name/list, I have tried prefixing the event name with a ., nothing seems to get this callback firing.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.