I have a SpringBoot application, where I configured a WebSocket, which I can connect to with Postman. I have it up on ws://localhost:8050. With only one namespace,"socket".
I tried configuring a native angular websocket and a simple connect, running into an internal server error.
[]
I tried to create the WebSocket connection like this.
this.socket = new WebSocket("ws://localhost:8050/socket")
I am not importing any library like 'ws' for this constructor, it is simply the native one.
I get this error.
[vite] Internal server error: WebSocket is not defined
I expect to be able to connect to the server.