Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add websocket and query to servers API #1331

Closed
wants to merge 1 commit into from

Conversation

lorenzo-cavazzi
Copy link
Member

This is a demonstration of how to set up a WebSocket channel using the ws package, and how to query other renku APIs with the axios library.

How to test: You need to create a user and login into the test deployment. From that page, open the developer console and create a WebSocket object:

webSocket = new WebSocket("wss://renku-ci-ui-1331.dev.renku.ch/ui-server");
webSocket.onmessage = function (event) {
    console.log('Message from server ', event.data);
};

You can now send messages using webSocket.send().

webSocket.send("test"); // get the message back -- work with any other text
webSocket.send("servers"); // get the number of running interactive environments

/deploy
re #1264

This is a demonstration on how to set up a
WebSocket channel using ws, and how to
query other renku APIs.

re #1264
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-1331 April 28, 2021 13:00 Inactive
@RenkuBot
Copy link
Contributor

You can access the deployment of this PR at https://renku-ci-ui-1331.dev.renku.ch

@lorenzo-cavazzi
Copy link
Member Author

This will soon be closed and superseded by #1888 and #1904

@lorenzo-cavazzi lorenzo-cavazzi removed this from the 2.6.0 milestone Jul 15, 2022
@lorenzo-cavazzi lorenzo-cavazzi deleted the 1264b-websockets branch August 19, 2022 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants