Hi Everyone,
Integrated socket io with Meteor using the following code
import io from 'socket.io';
import { Meteor } from 'meteor/meteor';
import { WebApp } from 'meteor/webapp';
const { httpServer } = WebApp;
Meteor.startup(()=>{
io(httpServer).on('connection', (socket)=>{
console.log("inside socket conection");
socket.on('hello',(data)=>{
console.log('HELLO BISH')
console.log(JSON.stringify(data));
// console.log(data.text)
socket.emit("hello_back", data);
});
});
})
Sockets are working fine on the Web but while connecting these from Flutter App, Getting a connection timeout error. Can anyone suggest to me what can be the issue here?
Deployed the Application both on Heroku & production. Also, checked on HTTP & HTTPS the error is the same for both.
Please help.