Hi,
I have a test websocket application (websocket class called /connector) that works when connected directly.
Now I put a caddy webserver as a reverse proxy in between:
caddyfile:
The B4J server is running on 192.168.0.2 port 80
When I connect using this caddyfile my B4J server crashes:
When I remove the "websocket" in the caddyfile, the main page gets loaded, but as soon as the websocket is opened my browser returns an error (and thus the websocket is not working).
Anyone any idea ?
I think it is caused by the embed jetty server, as found here: http://stackoverflow.com/questions/...ocketfactory-upgrade-on-embedded-jetty-8-1-12
But I don't know how to fix it.
Thanks
Thanks !
I have a test websocket application (websocket class called /connector) that works when connected directly.
Now I put a caddy webserver as a reverse proxy in between:
caddyfile:
B4X:
mydomain.com {
proxy / http://192.168.0.2:8080 {
websocket
}
}
The B4J server is running on 192.168.0.2 port 80
When I connect using this caddyfile my B4J server crashes:
B4X:
at org.eclipse.jetty.server.HttpChannelOverHttp.upgrade(HttpChannelOverHttp.java:373)java.lang.NullPointerException
When I remove the "websocket" in the caddyfile, the main page gets loaded, but as soon as the websocket is opened my browser returns an error (and thus the websocket is not working).
Anyone any idea ?
I think it is caused by the embed jetty server, as found here: http://stackoverflow.com/questions/...ocketfactory-upgrade-on-embedded-jetty-8-1-12
But I don't know how to fix it.
Thanks
Thanks !
Last edited: