Revamped the attach addon
Also updated docs with proper attach url
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user