2

Has anyone ever tried using socket.io through a cloudflare tunnel on Ubuntu server in Oracle Cloud?

Everything works great locally. Everything works great on my home windows machine through a cloudflare tunnel

Comments
  • 2
    It's likely a security policy/firewall/routing issue.

    You'll have to post your VCNs topology for anyone to have any chance of troubleshooting with you.
  • 1
    @TheBeardedOne I'd recommend skipping socket.io and going straight for a websocket. It's technology from yesteryear that isn't necessary any more. Last I checked, it does long polling by default before upgrading, and everything supports websockets (can you even do binary sockets with socket.io?)
  • 2
    I made socketio myself by sending a client side id, make a promise mapped in a dict with that id, and if server responds, it's using that id. For one way communication the client side id field is just empty.

    I use a nice proxy object cause me to do await rpc.someFunctionOnServerNotDeclaredClientSide(). RPC is a wrapped socket making it possible to call non existing functions as native. I have no networking code in my frontend at all. Only this stuff.

    Wouldn't know why it would not work trough the tunnel tho.

    Currently working on intense socket project https://snek.molodetz.nl. It is a chat app :)
Add Comment