mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Force socketio to use websockets
This commit is contained in:
		@@ -27,7 +27,7 @@ nopaque.flashedMessages = undefined;
 | 
				
			|||||||
// nopaque functions
 | 
					// nopaque functions
 | 
				
			||||||
nopaque.socket = {};
 | 
					nopaque.socket = {};
 | 
				
			||||||
nopaque.socket.init = function() {
 | 
					nopaque.socket.init = function() {
 | 
				
			||||||
  nopaque.socket = io();
 | 
					  nopaque.socket = io({transports: ['websocket']});
 | 
				
			||||||
  // Add event handlers
 | 
					  // Add event handlers
 | 
				
			||||||
  nopaque.socket.on("corpora_init", function(msg) {
 | 
					  nopaque.socket.on("corpora_init", function(msg) {
 | 
				
			||||||
    nopaque.corpora = JSON.parse(msg);
 | 
					    nopaque.corpora = JSON.parse(msg);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user