nerzh / Action-Cable-Swift

ActionCable is a WebSocket server being released with Rails 5 which makes it easy to add real-time features to your app. This Swift client inspired by "Swift-ActionCableClient", but it not support now and I created Action-Cable-Swift. Also web sockets are now separate from the client.
MIT License
41 stars 11 forks source link

The `send message` action is not working. #8

Closed gevorgyanvahagn closed 3 years ago

gevorgyanvahagn commented 3 years ago

here is an example of generated message which can't be parsed by server,

"{\"identifier\":\"{\\\"channel\\\":\\\"LivestreamChatsChannel\\\",\\\"livestream_id\\\":12}\",\"command\":\"message\",\"data\":\"{\\\"content\\\":\\\"hello!\\\",\\\"action\\\":\\\"chat\\\"}\"}"

gevorgyanvahagn commented 3 years ago

the issue is I don't receive the message back

nerzh commented 3 years ago

the point is that the error can be both on the server side and on the client side. Describe what exactly is your problem ? it seems to me that you have a server side problem