https://github.com/bricksphd/ClinicianView/blob/dfc6e22569cda1df4f3b667961313979ebfc9216/mainscript.js#L30 Is there a reason you are using the client version of socket.io here?