From 345d27bf799a301d0ac106af1678c5e47e840327 Mon Sep 17 00:00:00 2001 From: ysangkok Date: Fri, 21 Sep 2012 15:29:20 +0300 Subject: [PATCH] add a getter so that the websocket is accessible outside websock.js --- include/websock.js | 1 + 1 file changed, 1 insertion(+) diff --git a/include/websock.js b/include/websock.js index ccb7d4c..512a37e 100644 --- a/include/websock.js +++ b/include/websock.js @@ -413,6 +413,7 @@ function constructor() { api.send = send; api.send_string = send_string; + api.getWebSocket = function() { return websocket; } api.on = on; api.init = init; api.open = open;