danielrhodes / Swift-ActionCableClient

ActionCable is a new WebSocket server being released with Rails 5 which makes it easy to add real-time features to your app. This Swift client makes it dead-simple to connect with that server, abstracting away everything except what you need to get going.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sending un-supported action

danipralea opened this issue · comments

Hello, I have successfully implemented the library, but on the course of doing that, I kept sending invalid actions to the server. The server did acknowledge that by echoing Unable to process ChannelEventsChannel#entity_typing) while I was sending room.action("entity_typing")

Basically I was sending an action not recognised by the server. It was ok for me, cause I had server support, but it shouldn't have reached to that and I should have known from the start that I was sending an invalid action by receiving an error when sending it.

Just a thought.

In that case, I would recommend a REST API. ActionCable, but more generally sockets, do not work that way unless there is such a contract in the protocol used.

On Nov 11, 2016, at 16:10, Danut Pralea notifications@github.com wrote:

Hello, I have successfully implemented the library, but on the course of doing that, I kept sending invalid actions to the server. The server did acknowledge that by echoing Unable to process ChannelEventsChannel#entity_typing) while I was sending room.action("entity_typing")

Basically I was sending an action not recognised by the server. It was ok for me, cause I had server support, but it shouldn't have reached to that and I should have known from the start that I was sending an invalid action by receiving an error when sending it.

Just a thought.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

no worries. I thought the underlying library, Starscream has this capability. I know Starscream is a lot more verbose, so I naturally assumed there's a way somehow to add that.
I worked with it before using ActionCableClient.

Thanks again!