Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

All right. Disable websockets on client side in order to speed up con…

…nection process.
  • Loading branch information...
commit ad11cbe6e82df63dbc7f73660fc9cab6d83d1a28 1 parent 395d5ca
Marek majek authored
Showing with 8 additions and 1 deletion.
  1. +7 −0 mud/core/templates/index.html
  2. +1 −1  mud/static/main.js
7 mud/core/templates/index.html
View
@@ -17,6 +17,13 @@
<body>
<script>
var sockjs_url = "{{ sockjs_url }}";
+ // Disable websockets. Set to `undefined` for defaults.
+ var sockjs_protocols = ['xhr-streaming',
+ 'iframe-eventsource',
+ 'iframe-htmlfile',
+ 'xhr-polling',
+ 'iframe-xhr-polling',
+ 'jsonp-polling'];
</script>
<div id="maincolumn">
<div id="box">
2  mud/static/main.js
View
@@ -21,7 +21,7 @@ $(function () {
$(function () {
var opts = {debug: true};
- var conn = new SockJS(sockjs_url, undefined, opts);
+ var conn = new SockJS(sockjs_url, sockjs_protocols, opts);
var to = null;
var ping = function() {
Please sign in to comment.
Something went wrong with that request. Please try again.