Argo tunnel websockets not working

Unable to use websocket from argo tunnel. but Working fine on localhost. I’m using php to create a socket on port 8443. and in Js

var websocket = new WebSocket("wss://ws.sadiqserver.ml:8443");

my Config

tunnel: <id>
credentials-file: C:/Users/Sadiq/.cloudflared/<id>.json

ingress:
  - hostname: sadiqserver.ml
    service: http://127.0.0.1:8080

  - hostname: www.sadiqserver.ml
    service: http://127.0.0.1:8080

  - hostname: ws.sadiqserver.ml
    service: ws://127.0.0.1:8443

  - service: http_status:404

logfile:  D:\server\cloudflared.log

Argo tunnel does not support the WebSocket protocol. See this for the list of supported protocols.
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress#supported-protocols

1 Like

Is there any way to use Websockets with tunnel?

This post seemed to have someone do it successfully but given it is not supported then there is no guaranteed way to get it to work