Make the socket accessible externally for debuggging

(imported from commit 8f78d09edc05f8eed5f1a2d87643bdd7b7d9bec6)
This commit is contained in:
Zev Benjamin
2013-10-24 17:08:31 -04:00
parent 3bad5acc71
commit 77a1ed967b

View File

@@ -355,6 +355,9 @@ function send_message_ajax(request, success) {
}
var socket = new Socket("/sockjs");
// For debugging. The socket will eventually move out of this file anyway.
exports._socket = socket;
function send_message_socket(request, success) {
socket.send(request, success, function (type, resp) {
var err_msg = "Error sending message";