Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How It Works: Sending messages through a websocket #1897

Open
jkolsen opened this issue Oct 10, 2019 · 4 comments
Open

How It Works: Sending messages through a websocket #1897

jkolsen opened this issue Oct 10, 2019 · 4 comments

Comments

@jkolsen
Copy link
Collaborator

jkolsen commented Oct 10, 2019

@houshuang
This is less of an issue and more of a request for information about how something works. I can move it from here and put it into documentation along with the answer when I have it.

For the websocket connections to students, how does that work? For a session, there is one websocket open and through this, multiple students or groups can connect to the session. When you want to send information to a group that is different from another group, how does this work? Is the information sent to all the groups and then on that side it is filtered or is there something that is done on the sending side that could allow it to just be sent to one group?

@houshuang
Copy link
Collaborator

houshuang commented Oct 10, 2019 via email

@houshuang
Copy link
Collaborator

Note that it's easy and informative to inspect the two different websocket connections from the Chrome dev panel in the Network tab. 

Screenshot 2019-10-10 at 09 59 44
Screenshot 2019-10-10 at 09 59 39

@jkolsen
Copy link
Collaborator Author

jkolsen commented Oct 10, 2019

Thank you for the info. I do have a more specific use case. Specifically for the dashboards for the robotics project, you had created the sendMsg command. If from a dashboard, the instructor would want to do something like pause the robots for one group, could this be done?

@houshuang
Copy link
Collaborator

houshuang commented Oct 10, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants