Answer the question
In order to leave comments, you need to log in
How to connect to Heroku custom domain via socket.io?
There is a design:
//client.js
var io = require('socket.io-client');
var socket = io.connect('https://app.herokuapp.com', {reconnect: true});
// Add a connect listener
socket.on('connect', function (data) {
console.log('Connected!');
});
//client.js
var io = require('socket.io-client');
var socket = io.connect('https://app.com', {reconnect: true});
// Add a connect listener
socket.on('connect', function (data) {
console.log('Connected!');
});
Answer the question
In order to leave comments, you need to log in
The question is closed, everything worked by itself. Apparently, there was something with DNS.
1. Does https://app.com belong to you?
2. Specify your address in the browser (or curl, wget, etc.) (do not forget about the port) and check for yourself what is wrong.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question