I have it all working using the websocket-rails gem in the browser. What are the barriers to this working in the simulator?
Websocket-rails is built on top of a Faye server. Everything is being initialized correctly and in the right order and I have double checked all the channel and “dispatcher” settings and they are the same as in the browser.
When I trigger a new message, the message is not getting to the server dedicated websockets controller and so there are no messages coming back.
var dispatcher = new WebSocketRails(WEBSOCKETS);
dispatcher.trigger('messages.create', $scope.message);
var channel = dispatcher.subscribe("chat_room_" + $scope.chat_room.id);
channel.bind('new_message', function(data) {
//DO STUFF
});