Open awahab94 opened 4 years ago
@abdulwahabcs Hi! Are you sure you setup server correctly? There's error with something about unsupported protocols
@kesha-antonov Thanks for replying i think you are right i had issue on my server side. Can you shar something to setup server?
+1
Hi everyone, and thanks @kesha-antonov for the package ! Did anybody find a solution for this ? I can't seem to even connect to the channel.
My Chat screen (react-native)
My Conversation Channel (Rails)
My Rails console logs (seems that it keeps trying to connect... unsuccessfully)
When I start debugging with ActionCable.startDebugging(), my console just shows
Am I missing any other configurations that might impact the connection ? Anything in routes or config or anything ?
For those who encounter a similar issue, I have figured out the reason that the client could not connect to the server.
In my development.rb file, I had a configuration line specifying config.reload_classes_only_on_change = false
After removing this line, my mobile app could finally connect to the backend.
Thanks again @kesha-antonov for the lib !
For those who encounter a similar issue, I have figured out the reason that the client could not connect to the server.
In my development.rb file, I had a configuration line specifying
config.reload_classes_only_on_change = false
After removing this line, my mobile app could finally connect to the backend.
Thanks again @kesha-antonov for the lib !
Thanks for sharing your solution!
Hi @kesha-antonov, I am new to action cable with react native. could you help to fix this issue? My Channel callbacks it not triggered so I don't is my APP connected or not?
ActionCable.startDebugging()
Logs areactionCable.connection.isActive()
it prints true and if i doactionCable.disconnected()
it will print false. Thanks.