Skip to content

Basics of geckos.io #183

Discussion options

You must be logged in to vote

Trying to auto-answer before someone else with the knowledge does, with the hope that I will be corrected or this info will make happy someone in a future. I've been going thru the source and making some tests and seems that:

  • io: instance of the server, hosts any number of incoming connections.
  • channel: user. The array of connected users exists on the channel's webrtcConnection property (connections) or in the io.connectionsManager.
  • room: looks like a regular room. You invent the room, ie room 54 or room "tango", and you join the user inside, then you can send messages in that particular room. So, creating a room is a simple channel.join('sugar'). I think this could be improved, so every…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by julifos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant