Im using the opentok and socket.io packages to try and create 2 “groups”. I have been able to pair up non grouped users with a 1to1 relationship just fine. What Im trying to do is have 2 groups of users. Lets say one group is a help desk and the other group is a customer. I want all the customers to be grouped together but not connect to one another. I would also like for the same behavior with the help desk group. I then want any 1to1 pair to group together ie. helpdeskTOcustomer. I would provide some code, but from a logical standpoint im not even sure how to begin coding this and the only thing I would be able to provide is just the slightly modified code from here.. http://www.tokbox.com/developersblog/code-snippets/opentok-sessions-using-node-js/
Share
It’s not really clear from your question exactly what you’re trying to do (e.g. what do you mean by “pair” or “group together”), but you may find some use of Socket.IO’s rooms.
[Edit]
Okay, after seeing your comment and looking over the OpenTok docs a bit (I wasn’t familiar with it, it seems pretty neat), it looks like you just want a queue for each type of user, right? Here’s a bit of code (more like pseudocode, as I’m not intimately familiar with your app or the OpenTok API):