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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:42:55+00:00 2026-05-27T18:42:55+00:00

Having read posts about node.js for a long time, I tried to write my

  • 0

Having read posts about node.js for a long time, I tried to write my own style of chatroom with socket.io .
Here’s the link, but only one channel: http://zhonglichat.cnodejs.net/
Here’s what I’m thinking about:
Visitors can create new channels by typing title and clicking ‘Submit’.
Then they can also visit the new channel just like visiting another chatroom.
And all these happen while the server is running. I went through the guide on socket.io , seems it’s hard to create new channels. So is there any simple way via which I can make that?

  • 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-27T18:42:56+00:00Added an answer on May 27, 2026 at 6:42 pm

    There’s no need to create a channel with the latest version of Socket.IO, the important thing is just to make clients join it, look at this code example on the server side (from the github repo):

    var io = require('socket.io').listen(80);
    
    io.sockets.on('connection', function (socket) {
      socket.join('justin bieber fans');
      socket.broadcast.to('justin bieber fans').emit('new fan');
      io.sockets.in('rammstein fans').emit('new non-fan');
    });
    

    As you can see the ‘justin bieber fans’ channel wasn’t created, but clients can join it.

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

Sidebar

Related Questions

I have read a few posts about people putting in either their own icons
I've read all the posts about dashes and tried pretty much everything mentioned in
Having read this link on RBAR and this , my understanding of RBAR amounts
I've read a few other posts like this one about avoiding repetition in Java
I've read dozens of posts on this topic, but everyone else is having horizontal
Hey there, I have read the few posts here on when/how to use the
Ok, I have read a lot of posts and resources about this but I
I've read a lot of posts about using threads, subprocesses, etc.. A lot of
I'm having difficulty testing some logic that uses notifications. I've read about enforcing that
Having a little issue with NSDictionary and sorting. I've read a few posts on

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.