I'm trying to get websockets working, but keep getting the following error:
Then, I see these errors in the console:
My server is apache and my VirtualHost config looks like this:
I copied the code from the
documentation directly & modified my path to my crm.
I am using Cloudflare, which proxies requests to my subdomain, so I'm not sure if that's causing a problem.
See here: https://support.cloudflare.com/hc/en...ith-WebSockets
Anyone know what might be preventing the websockets from working?
Code:
WebSocket connection to 'wss://crm.mycrm.com/wss?authToken={some_token}&userId={id}' failed: Error during WebSocket handshake: Unexpected response code: 301
Code:
WebSocket: Could not unsubscribe from streamUpdate.{entity}.{id}
Code:
<VirtualHost *:443>
...
<IfModule proxy_module>
ProxyRequests Off
<Location /wss>
ProxyPass ws://mycrm.com:8080
ProxyPassReverse ws://mycrm.com.com:8080
</Location>
</IfModule>
SSLEngine on
SSLCertificateFile ...
</VirtualHost>
Code:
/etc/systemd/system/espocrm-websocket.service
I am using Cloudflare, which proxies requests to my subdomain, so I'm not sure if that's causing a problem.
See here: https://support.cloudflare.com/hc/en...ith-WebSockets
Do Cloudflare Workers support proxying WebSockets?
Yes, Cloudflare Workers support proxying WebSockets. However, it currently does not support:
Yes, Cloudflare Workers support proxying WebSockets. However, it currently does not support:
- Acting as an endpoint (client or server) for a WebSocket session
- Manipulating or modifying individual messages

Comment