Skip to content

custom WebSocket Theia backend service issue with multi-tent... #8108

Answered by akosyakov
eli88p asked this question in General
Discussion options

You must be logged in to vote

now my problem is when i try to connect with multi sessions from one instance of Theia, the messages arrive in other session.

So many web sockets connections :) Could you elaborate what do you mean by multi sessions? Theia has a session only on frontend, on backend you can use connection (session) scoping to instantiate services only within this connection. You should be able to have such service which establish then websocket connection to Net. On connection scoping: https://github.com/eclipse-theia/theia/blob/master/packages/core/src/node/messaging/connection-container-module.ts#L35-L73

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eli88p
Comment options

@akosyakov
Comment options

Answer selected by eli88p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants