TransitionTo from outside an EmberApp


#1

I am coming up on what seems to be an unusual design requirement. I need to accept incoming requests into a listener in my Ember App which will prompt the app to transition to a new route.

Pseudo-code is below:

socket.on('message', function (message) {
  thus.transitionToRoute(message.route);
});

Has anyone done anything similar as I am looking for a place to start.


#2

Where are you setting up the socket listener? That will help me come up with an answer.