Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8926343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:57:04+00:00 2026-06-15T07:57:04+00:00

This is my node server var io = require(‘socket.io’).listen(8889); io.sockets.on(‘connection’, function (socket) { socket.emit(‘news’,

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T07:57:05+00:00Added an answer on June 15, 2026 at 7:57 am

    Socket.IO is a Lightweight protocol that sits on top of HTTP.

    https://github.com/LearnBoost/socket.io-spec

    You can see more info there https://stackoverflow.com/a/8053026/1012381
    But in short you can’t have raw data connection by the browser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simple node js http server. var http = require(http); http.createServer(function(request, response) {
Given code like this from a node.js neophyte like me: require('http').createServer(function( req, resp )
I have the following node.js server running on 172.16.1.218: var net=require('net'); var server =
I have the following simple http server using Node.js: var http = require('http'); var
i have the following code: var net = require('net'); var server = net.createServer(function (stream)
I have a strange problem. I do this query in a node.js server using
I've written a non-blocking tcp-server with node.js . This server listens on a port
I have the following node.js server set up listening to port 9001 var https
I have a windows server running IIS and node.js with socket.io for an interactive
Okay, I have a simple test server set up using socket.io in node.js. My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.