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
sockjs: WebSocketSession not yet initialized #57
Comments
If your server is virtual hosted, try it with the option: proxy = proxyMiddleware('/go', {
target: 'http://localhost:8080/',
ws: true,
changeOrigin: true
}); |
It is a local Tomcat running a java app and hosting the socket. I tried
|
Maybe you can leave out |
I think that actually works! Thank you @chimurai |
Glad to hear the solution works! :) |
@elijahiuu Now that I think about it, this might be a bug... I'll have to spend some time to investigate this. |
+1 Having same problem, and seeing:
removing the line I agree it is either a bug, or usage documentation needs to be updated. |
Think I've found the issue... I published a beta version: v0.15.1-beta. Can you test it to confirm the fix? Problem shouldn't occur anymore when the following are used: // proxy config
config.ws: true
// external upgrade
server.on('upgrade', proxy.upgrade); |
I am having problems proxying SockJS websockets. On the server side I am getting "WebSocketSession not yet initialized". On the client side I am getting "failed: Invalid frame header". It looks like it almost connects, but something goes wrong in handshake. Any ideas?
Here's my proxy configuration.
Network tab:
General
Response Headers
The text was updated successfully, but these errors were encountered: