This is my node server
var io = require('socket.io').listen(8889);
io.sockets.on('connection', function (socket) {
socket.emit('news', { hello: 'world' });
socket.on('my other event', function (data) {
console.log(data);
});
});
I am trying to connect to this node server from client side with the help of socket.io.js
I dont have any problem with the connection
My requirement is that I want to create a TCP
connection to which clients can connect
But how can I know and confirm the server is a TCP
type or HTTP
type