add a getter so that the websocket is accessible outside websock.js
This commit is contained in:
parent
384c2772fb
commit
345d27bf79
|
|
@ -413,6 +413,7 @@ function constructor() {
|
||||||
api.send = send;
|
api.send = send;
|
||||||
api.send_string = send_string;
|
api.send_string = send_string;
|
||||||
|
|
||||||
|
api.getWebSocket = function() { return websocket; }
|
||||||
api.on = on;
|
api.on = on;
|
||||||
api.init = init;
|
api.init = init;
|
||||||
api.open = open;
|
api.open = open;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue