Beginning with version v20.06.00 of the main Submitty repository, we have added a new WebSocket interface. Future Submitty releases will leverage WebSockets for dynamic content on frequently changing pages including the TA grading interfaces, discussion forum, and office hour queue without a manual page refresh. To enable WebSockets, you will need to add the following lines to your apache site configuration file for Submitty:
-
Go to
/etc/apache2/sites-available
-
Find the appropriate
.conf
file.Note: If you have multiple files, you can double check which configurations are linked (and thus in-use) from the
/etc/apache2/sites-enabled
directory. -
Make the modification below somewhere in the file under the top-level VirtualHost directive.
ProxyPass "/ws" "ws://127.0.0.1:41983/"
For an example of placement, see our example apache conf file.
-
Restart apache:
systemctl restart apache2
-
Install the new Submitty software:
/usr/local/submitty/.setup/INSTALL_SUBMITTY.sh
-
Enable the websocket server systemd unit so that it automatically starts on restarts of the server:
systemctl enable submitty_websocket_server
-
Start the WebSocket daemon:
systemctl start submitty_websocket_server
-
Verify that the daemon is running:
systemctl status submitty_websocket_server