Is it possible to use socket.io between NodeJS and AngularJS <p>I have two independent applications (frontEnd and BackEnd). The backEnd is in NodeJS using express framework and the FrontEnd is in AngularJS. Is it possible to use socket.io to send a message from the server (NodeJS) to the client (AngularJS)? How I can do that? I've tried with the following code but it is not working:</p> <p>server code</p> <pre><code>var app = require('express')(); var server = require('http').Server(app); var io = require('socket.io')(server); io.sockets.on('connection', function(socket) { //This message is not showing console.log("socket"); socket.volatile.emit('notification', {message: 'push message'}); }); </code></pre> <p>client code</p> <pre><code>angular.module('pysFormWebApp') .factory('mySocket', function (socketFactory) { var mySocket = socketFactory({ prefix: 'foo~', ioSocket: io.connect('http://localhost:3000/') }); mySocket.forward('error'); return mySocket; }); angular.module('formModule') .controller('typingCtrl', ['$scope', 'mySocket', typingCtrl]); function typingCtrl ($scope, mySocket) { mySocket.forward('someEvent', $scope); $scope.$on('socket:someEvent', function (ev, data) { $scope.theData = data; console.log(data); }); </code></pre> <p>thanks for the help </p>