Angular Websocket Factory

programming No Comment

Websockets are a great way to communicate between client and server applications. Since I am an Angular nut, I had to wrap this in a factory. I also came up with a scheme to allow controllers to listen form websocket broadcasts since promises do not fit the bill for websockets.


A websocket response from the server might look something like:



I am using Mojolicious on the backend, in case anyone is interested.



Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *