From 6b3566ca0b7dd0c4bce7fa14ed1cce3e2813418a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 20 Mar 2012 12:36:11 +0100 Subject: Add a JS function to change the url being used for the stream This doesn't reconnect the stream, just changes it for the next reconnection. This is useful if you need to change the arguments given each time you connect. --- priv/bullet.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/priv/bullet.js b/priv/bullet.js index 8730315..c593646 100644 --- a/priv/bullet.js +++ b/priv/bullet.js @@ -228,6 +228,9 @@ this.onclose = function(){}; this.onheartbeat = function(){}; + this.setURL = function(newURL){ + url = newURL; + }; this.send = function(data){ return transport.send(data); }; -- cgit v1.2.3