-
Notifications
You must be signed in to change notification settings - Fork 3
Testing of Server
Kurtis Grant edited this page Feb 21, 2022
·
1 revision
Some of the setup for sockets depends upon the process of users logging in, and loading their destination page. If you start or restart the server while the app is open in the browser, you may experience bugs. For example, the server uses a 'join simulation' event when a teacher loads a specific simulation to notify the server that it should keep that specific teacher in the loop about changes to that specific simulation. If you restart the server while this page is already loaded, it won't have added the teacher's connection to the list of connections it needs to inform when there are changes.
Most of these issues can be remedied by, at the least, remembering to refresh the browser after each server start/restart.