add a getter so that the websocket is accessible outside websock.js

This commit is contained in:
ysangkok 2012-09-21 15:29:20 +03:00
parent 384c2772fb
commit 345d27bf79
1 changed files with 1 additions and 0 deletions

View File

@ -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;