Skip to content

Instantly share code, notes, and snippets.

@robi42
Created September 4, 2010 13:49
Show Gist options
  • Select an option

  • Save robi42/565192 to your computer and use it in GitHub Desktop.

Select an option

Save robi42/565192 to your computer and use it in GitHub Desktop.
diff --git a/modules/ringo/webapp/websocket.js b/modules/ringo/webapp/websocket.js
index 17ecc55..c3105cd 100644
--- a/modules/ringo/webapp/websocket.js
+++ b/modules/ringo/webapp/websocket.js
@@ -59,6 +59,14 @@ exports.addWebSocket = function(context, path, onconnect) {
return outbound.isOpen();
},
/**
+ * Get the outbound WebSocket connection.
+ * @name WebSocket.instance.getOutbound
+ * @function
+ */
+ getOutbound: function() {
+ return outbound;
+ },
+ /**
* Get the HTTP Session object associated with this WebSocket.
* @name WebSocket.instance.getSession
* @function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment