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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:49:11+00:00 2026-05-24T16:49:11+00:00

I have simulated a browser client of socket.io in the node.js server I am

  • 0

I have simulated a browser client of socket.io in the node.js server

I am creating the simulated browser client when particular message arrived from a Real browser client.

     console.log('creating client of '+sessionId);
    var socket=client.init();

    console.log(socket);

here is my Simulated browser client in node.js , I am using https://github.com/saschagehlich/node-socket.io-client for creating client.

exports.init=function(){
    var socket = new io.Socket(config.host, {port: config.port, rememberTransport: false});
    // when connected, clear out display
    socket.on('connect',function() {
        console.log('dummy user connected');
    });
    socket.on('disconnect',function() {
        console.log('disconnected dummy');
    });
    socket.on('message', function(data){
      console.log(data);
    });
    socket.connect();
    return socket;
};

The problem is this that the consoles in the client is not getting printed , the socket is return and printed . but not console. in client code.
And i also want the session id of simulated client , how can i get it ?

  • 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-24T16:49:12+00:00Added an answer on May 24, 2026 at 4:49 pm

    Node.js has a simple debugger that can be invoked using:

    node debug script.js

    The debugger has simple commands like print or step. You could write code inline and use util.inspect() for inspecting objects.

    Something more advanced would be using Google’s V8 debugger http://code.google.com/p/v8/wiki/DebuggerProtocol
    but that’s usually an overkill…

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

Sidebar

Related Questions

i have a client site www.noozhoo.com which worked fine on browser in PC or
I have a simple simulated array with two elements: bowl["fruit"] = "apple"; bowl["nuts"] =
We have an application that generates simulated data for one of our services for
I have images uploaded on the simulated sdcard on my emulator. I downloaded them
I have a PHP script that works by calling items from a database based
Is it possible to simulate key press on the browser (js, canvas, server side?),
For a browser game, I have a database table fights : fightID fromID toID
I have this site I want to get information from. To get the file
I have the following code: tmp_data = simulated_data[index_data]; unsigned char *dem_content_buff; dem_content_buff = new
I have to simulate family tree in prolog. And i have problem of symetrical

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.