Websocket client for ActionCable in Rails API app -
i need use websocket in rails api (only) app. there's no server-side rendering pages. app json-only backend angular , xamarin. saw lot of tutorials use coffescript actioncable client inside rails, it's not case.
the question is: how use actioncable api-only, outside of rails' coffescript, android, ios, angular , react client?
i found different , useful resources i'm still bit confused.
1: actioncable usage rails api - it seems best, how can find json commands exchanged actioncable framework?
3: rails api websocket gem - ok, not actioncable, guy had compiled coffescript js , ported project. not useful mobile development.
if there different solutions or better knowledges, please tell me. need "hack" turn working.
edit : found repo action-cable-js how integrate it?
i hope answer useful anybody. discovered library called actioncable-js helped me in angular project.
but not enough. mobile projects need use "low level" commands interact action cable server.
the protocol here: protocol.
but if need more should deep inside gem.
Comments
Post a Comment