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;