You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 25, 2018. It is now read-only.
OK, so callback.call(message) must be in the end of incoming() and outgoing() functions, and can't be in any conditional instruction like 'if', and must appear only once in all function? To stop message from being sent, because of eg. authentication fail, we have to set message['error'] field in incoming() function. Then outgoing() function, when detect 'error' in message, stops processing that message and send another message with information, that something went wrong. Good explanation?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have problem with callback.call(message). First my code:
application.rb
realtime_auth.rb
Whe i try to publish message to realtime_events channel i got this:
Outgoing message don't have data field
but when i change RealtimeAuth incoming function to this:
Everything works:
Can someone explain why this don't work as expected? Thanks for help.
The text was updated successfully, but these errors were encountered: