You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You would connect to the websocket for that job and read the connection_details for the url_path and url_domain, that will be the URL for the JupyterLab UI:
document.cookie='token=xxxx'letsocket=newWebSocket("wss://ws-workspaces-api.dev.hubmapconsortium.org/jobs/47/",[]);
fetch('https://workspaces-api.dev.hubmapconsortium.org/job_types/').catch(error=>{console.error('Error:',error);})
socket.onopen=function(e){alert("[open] Connection established");alert("Sending to server");};
socket.onmessage=function(event){console.log(event.data)};
socket.onclose=function(event){if(event.wasClean){alert(`[close] Connection closed cleanly, code=${event.code} reason=${event.reason}`);}else{// e.g. server process killed or network down// event.code is usually 1006 in this casealert('[close] Connection died');}};
socket.onerror=function(error){alert(`[error] ${error.message}`);};
Create sphinx docs to more fully encapsulate all of the different functionality available
The text was updated successfully, but these errors were encountered: