this is hte link on my app: https://intense-inlet-33140.herokuapp.com/ u can see there what axactly the error I have.
It looks like:
bundle.js:2391 GET https://intense-inlet-33140.herokuapp.com/socket.io/?EIO=3&transport=polling&t=Lt2mQC9 404 (Not Found)
the code regarding that I have: server side app.js:
var express = require('express'),
app = express(),
server = require('http').Server(app),
io = require('socket.io')(server);
app.set('port', (process.env.PORT || 5000));
app.use(express.static(__dirname + '/public'));
Html:
script(src='/socket.io/socket.io.js')
And bundle.js client side:
var io = require('socket.io-client');
var socket = io.connect('https://intense-inlet-33140.herokuapp.com/', {
'path': '/socket.io/'
});
this.io = socket.connect('/socket.io/', {
transports: ['websocket'],
upgrade: false,
});
My app running on the Heroku.
What exactly should I put there io.connect( ??? ) and there socket.connect( ??? , {
I know it must be a path to... socket? I don't understand it well and I tried different options, but there are still the same errors. Help please.