TransitionTo from outside an EmberApp


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) {

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


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