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 7584787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:00:24+00:00 2026-05-30T19:00:24+00:00

I am developing a simple application using the current latest versions of nodejs +

  • 0

I am developing a simple application using the current latest versions of nodejs + socket.io on Windows. I have encountered a problem when the socket get created on the client side, but socket.emit results in the following output in the console (using Google Chrome):

GET http://0.0.34.184:8888/socket.io/1/?t=1321385855665&jsonp=0

Which is quite strange because I am testing on localhost:8888 so it should be at least 127.0.0.1 and not 0.0.34.184. The socket.io client on the page is requested from the server in the tag as follows:

<script type="text/javascript" src="socket.io/socket.io.js"></script>

Then I connect using the following code:

socket = io.connect('localhost:8888');
socket.on("my_event", receiveNetEvent);

console.log('LOG: sio init complete, socket=' + socket);

The log states that socket=[Object object] which is not null or undefined so everything should work.

The sending itseld is performed in the following function:

function sendRequest(request){
    socket.emit('request', request);
}

The request object, passed to the function is formed and passed like this:

var initRequest = {};
initRequest.subject = 'weather';
initRequest.key = 'initial';

sendRequest(initRequest);

And it is a valid json object according, again, to console.log().

All this leaves me totally clueless about any possible reason of the happening.

  • 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-05-30T19:00:25+00:00Added an answer on May 30, 2026 at 7:00 pm

    Try adding http:// to the connect path. That solved this error for me.

    socket = io.connect('http://localhost:8888');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a windows application using vb.net, I have a simple html page
I have a simple application using netbeans for developing and maven for building et
I am developing a simple ASP.Net application on a Windows 7 x64 machine using
im developing a simple Mxml application using flex 3. I have used simple text
I'm currently developing a simple iPhone application using a UITabBar and table views for
I'm developing a simple application to manage the operational part of a business using
Hi I am developing a simple application based upon ASP.NET MVC. I have altered
I'm developing an application and I need to get the current date from a
Im developing a simple console application using java. I want to display currently running
Im developing a simple console Application using java. The code is given below `

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.