Skip to content

Can't connect to backend API through WebSockets #14878

Answered by msujew
daleasberry-n asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @daleasberry-n,

the Theia frontend does not use plain websocket connections to communicate to the backend. In fact, you will probably find it to be very difficult to create any meaningful connection with Theia's backend given that we use socket.io + messagepack + a custom RPC mechanism to form the connection and send messages. Theia's backend server infrastructure is not built with API integration testing in mind. In theory you can probably get this to work by reusing parts of the frontend stack, but I'm not entirely sure how easy it is to set this up.

My recommendation would be to either test your code directly via jest or similar testing frameworks or use the @theia/playwright packa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daleasberry-n
Comment options

Answer selected by daleasberry-n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants