socket: Don't even create the socket on prod

(imported from commit 1990d86618ae715c072b6b81672afd6f0e8f48fe)
This commit is contained in:
Zev Benjamin 2013-11-06 16:45:12 -05:00
parent ed31b110e3
commit b5c68371d0
1 changed files with 4 additions and 1 deletions

View File

@ -367,7 +367,10 @@ function report_send_time(send_time, receive_time, display_time) {
});
}
var socket = new Socket("/sockjs");
var socket;
if (feature_flags.use_socket) {
socket = new Socket("/sockjs");
}
// For debugging. The socket will eventually move out of this file anyway.
exports._socket = socket;