kesha-antonov / react-native-action-cable

Use Rails 5+ ActionCable channels with React Native for realtime magic.
https://www.npmjs.com/package/@kesha-antonov/react-native-action-cable
MIT License
57 stars 24 forks source link

clarification on example in the README #10

Open jcohenho opened 4 years ago

jcohenho commented 4 years ago

Thank you for this library! I have a question about the example in the README. How are you passing the the chatID and userID from the Rails app when setting the channel name in chat_${chatId}_${userId}?

tonton-k commented 4 years ago

just fetch the data somehow. for instance: make an API server in order to collect it so, then make a connection to your ws.

kesha-antonov commented 1 year ago

just fetch the data somehow. for instance: make an API server in order to collect it so, then make a connection to your ws.

This suggestion is correct.