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

  • SEARCH
  • Home
  • 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 7085109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:23:03+00:00 2026-05-28T07:23:03+00:00

EDIT Solution: Visit your IP in the browser after you node server.js to kick-start

  • 0

EDIT

Solution:

Visit your IP in the browser after you “node server.js” to kick-start the connections. Dunno why it works, but it does for me.

How it came to be

Mkay.. after making a rebuild of the slice (hosted at slicehost if that matters) and reinstalling node and websocket-server I still had the same issue. I checked if a normal request worked (entering the IP in the browser) which it did. It also seemed to kick-start the socket connections, so I could now connect through those too.


I’m trying to connect to a socket server using node.js and the websocket-server module.

Server side looks like this:

   var server = ws.createServer();
   server.listen(80);

   server.addListener("request", function(req, res) {

   res.writeHead(200, {
    "Content-Type": "text/plain"
   });
   res.write("Hey! This is totally not the site you planned to visit.");
   res.end();
   });

  server.addListener("connection", function(conn) {

   conn.addListener("readyStateChange", function(readyState) {

   });
   conn.addListener("open", function() {

   });
   conn.addListener("close", function() {

   });
   conn.addListener("message", function(message) {
    server.broadcast(conn._id + ": "+message);
   });
 });

Standard procedure. When trying to connect from the client like this…

   if ( window["WebSocket"] ) {

            connection = new WebSocket("ws://[my IP]:80/");
            connection.onopen = function( event ) {
                console.log("connection open");
            }

            connection.onclose = function( event ) {
                console.log("connection closed");
            }

            connection.onerror= function( event ) {
                console.log("connection error");
            }

            connection.onmessage = function( event ) {
                console.log(event.data);
            };
        }

… I get the following error:

_linklist.js:65

item._idleNext = list._idleNext;

TypeError: Cannot read property ‘_idleNext’ of undefined
at Object.append (_linklist.js:65:24)
at Object.active (timers.js:136:9)
at Socket._writeOut (net.js:461:10)

at Socket.write (net.js:378:17)
at Object.draft76 ([my dir]/npm/node_modules/websocket-server/lib/ws/connection.js:401:28)
at new Connection ([my dir]npm/node_modules/websocket-server/lib/ws/connection.js:165:22)
at Server.<anonymous> ([my dir]npm/node_modules/websocket-server/lib/ws/server.js:72:7)
at Server.emit (events.js:81:20)
at Socket.<anonymous> (http.js:1034:14)
at Socket._onReadable (net.js:684:27)

It did run for a while (which is weird I guess), and then this message started appearing whenever I tried to connect. I haven’t changed anything in the node.js or websocket-server code. A penny to whomever can tell me why this happens!

  • 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-28T07:23:04+00:00Added an answer on May 28, 2026 at 7:23 am

    Visit your IP in the browser after you “node server.js” to kick-start the connections. Dunno why it works, but it does for me.

    Also, make sure you have a stable version of Node. I had an unstable one when the issue appeared.

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

Sidebar

Related Questions

-Edit: Solution Found- Figured it out after some heavy searching - one person (I
EDIT: I now have a solution, but I'd really apprecite a concise description of
Edit (Solution Discovered) Thanks everyone for your help on this. The problem was an
Intro: EDIT: See solution at the bottom of this question (c++) I have a
[edit] Found the solution. Reinstall EVERYTHING - xcode, mono, monodevelop and monotouch. Now it
EDIT: This was formerly more explicitly titled: - Best solution to stop Kontiki's KHOST.EXE
My current solution will suck sometimes EDIT For those who don't understand,see this example:
Please note the Edit below for a lot more information, and a possible solution
Edit: solution added. Hi, I currently have some working albeit slow code. It merges
EDIT: Solution in code can be found on bottom. I am not sure if

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.