projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/master' into origin-2608-websocket-event-bus...
[arvados.git]
/
apps
/
workbench
/
app
/
views
/
websocket
/
index.html.erb
diff --git
a/apps/workbench/app/views/websocket/index.html.erb
b/apps/workbench/app/views/websocket/index.html.erb
index 425ddd47fdcda38dfb322361d363de54c26310e0..85202b8662b83d104b3c5a35c9c312fa1850f515 100644
(file)
--- a/
apps/workbench/app/views/websocket/index.html.erb
+++ b/
apps/workbench/app/views/websocket/index.html.erb
@@
-18,7
+18,7
@@
putStuffThere = function (content) {
$("#PutStuffHere").append(content + "<br>");
};
$("#PutStuffHere").append(content + "<br>");
};
-var dispatcher = new WebSocket('
ws://localhost:3001/websocket
?api_token=<%= Thread.current[:arvados_api_token] %>');
+var dispatcher = new WebSocket('
<%= $arvados_api_client.discovery[:websocketUrl] %>
?api_token=<%= Thread.current[:arvados_api_token] %>');
dispatcher.onmessage = function(event) {
//putStuffThere(JSON.parse(event.data));
putStuffThere(event.data);
dispatcher.onmessage = function(event) {
//putStuffThere(JSON.parse(event.data));
putStuffThere(event.data);