Force socketio to use websockets

This commit is contained in:
Patrick Jentsch 2020-03-30 17:27:24 +02:00
parent f605430bf8
commit 9ced65f34c

View File

@ -27,7 +27,7 @@ nopaque.flashedMessages = undefined;
// nopaque functions
nopaque.socket = {};
nopaque.socket.init = function() {
nopaque.socket = io();
nopaque.socket = io({transports: ['websocket']});
// Add event handlers
nopaque.socket.on("corpora_init", function(msg) {
nopaque.corpora = JSON.parse(msg);