Hi,
I am having trouble with clients connecting to node.js server, specifically when using the Chatroom module.
The nodejs module and server versions are compatible (according to the nodejs module releases page). Also, I checked the node.js server and it is running correctly (socket.io.js can be accessed and drupal status report). However, when on a page where Chatroom is on, I am getting this error in the Chrome console:
GET https://tapchat2-breathalert.rhcloud.com:8080/socket.io/?EIO=3&transport... net::ERR_CONNECTION_TIMED_OUT socket.io.js:3511
Versions:
Drupal 7.41
Nodejs 7.x-1.12
Nodejs server 1.0.9
Hosting:
Drupal site (HTTPS) on siteground.com
Node.js Node.js server on openshift.redhat.com (shared)
nodejs.config file:
settings = {
scheme: 'http',
port: 8080,
host: process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1',
resource: '/socket.io',
serviceKey: 'key',
backend: {
port: 80,
host: 'tapcreative.services',
scheme: 'https',
basePath: '',
messagePath: '/nodejs/message'
},
debug: true,
sslKeyPath: '',
sslCertPath: '',
sslCAPath: '',
baseAuthPath: '/nodejs/',
extensions: [],
clientsCanWriteToChannels: false,
clientsCanWriteToClients: false,
transports: ['websocket', 'polling', 'xhr-polling'],
jsMinification: true,
jsEtag: true,
logLevel: 1
};I have been working on this for too long and am desperate for and appreciate any suggestions on what to do.
Thanks,
Peide
Comments
Comment #2
png commentedComment #3
png commentedComment #4
png commentedI changed the node.js server Port from 8080 to 443.
Now it seems all messages are successfully sent to the node.js server (from debug log), but the problem now is that the messages are not sent back to clients.
I created a new child issue because it has changed into a different problem.
Comment #5
png commented