I would like to ask for your help. I'm having a hard time in my client side of socket.io, I would like to call this code in my client side to create a room in socket.io:
var rooms = [];
socket.on('create', function (roomname) {
rooms[room] = room;
socket.room = roomname;
socket.join(roomname);
subscribe.subscribe(socket.room);
});
I don't know if this is correct, if not please help me to correct this guys. I'm not that to pro in node js and sockets but i've already read their wikis. Is there any possible way to create room?