mirror of https://github.com/zulip/zulip.git
socket: Don't even create the socket on prod
(imported from commit 1990d86618ae715c072b6b81672afd6f0e8f48fe)
This commit is contained in:
parent
ed31b110e3
commit
b5c68371d0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue