News for hackers. Stuff that matters.
Re:You might not need a WebSocket by pedalpete on Thursday July 10, 2014 @05:39PM (#8017518)
If I understand your first problem correctly, you could have setup an RPC system so you only write your apis once. Use the same 'endpoint' of your api as the data call in your socket connection, and you only end up writing your api once.
Re:You might not need a WebSocket by munro on Thursday July 10, 2014 @05:52PM (#8017584)
I can definitely hit the API from the websocket server, but I just didn't even bother! :D I just wrote the websocket server to do publishing events, and left syncing issues to the API