You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var app = express();
var port = process.env.PORT || 8080;
//var port = 3000;
// Notification Real Time
// http://4dev.tech/2017/12/tutorial-creating-a-realtime-notification-system-in-angular-and-nodejs/
var http = require('http');
var server = http.createServer(app);
var io = require('socket.io').listen(server);
io.set("origins", "*:*");
server.listen(8000);
io.on('connection', function(socket) {
socket.on('create notification', function( data ){
socket.broadcast.emit('new notification', data);
});
});
In chrome console get the error: GET http://myapp-backend.herokuapp.com:55353/socket.io/?EIO=3&transport=polling&t=MEtzh25 0 ()
The text was updated successfully, but these errors were encountered:
I made the deploy in Heroku, but what url should I configure?
app.module.ts (Angular hosted in other server)
app.js (node.js hosted in heroku server)
In chrome console get the error:
GET http://myapp-backend.herokuapp.com:55353/socket.io/?EIO=3&transport=polling&t=MEtzh25 0 ()
The text was updated successfully, but these errors were encountered: