Revamped the attach addon

Also updated docs with proper attach url
This commit is contained in:
paris
2014-05-02 23:45:00 +00:00
parent a1717fdd8d
commit 01e48b7406
2 changed files with 57 additions and 1 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ Getting started
.. code-block:: javascript
var term = new Terminal(),
socket = new WebSocket('ws://docker/containers/mycontainer/attach/ws');
url = 'ws://docker/containers/mycontainer/attach/ws/?stdin=1&stdout=1&stderr=1&logs=1',
socket = new WebSocket(url);
term.open(document.body);
term.on('data', function (data) {