Support Forums

Does Netlify support Websocket proxying

Is there something similar to Upgrade and Connection headers proxying that nginx has?
I’ve tried using this but to no avail:

  from = "/socket.io/*"
  to = "https://mywebsocketserver/:splat"
  status = 200
  force = true
  headers = {Connection = "upgrade", Upgrade = "websocket"}

And on the client:

new Websocket('wss://netlifyhost/socket.io')

Should it work?

hi there, this post should answer your question:

let us know if you need to know anything else!

That topic isn’t related. I’m asking whether netlify supports proxying sockets, not whether it supports deploying backend apps.

HI, @Vanuan, the answer is “no”. We do not support proxying websockets at this time.

Hi, just checking in to see if this feature exists yet?

hi there, no, unfortunately not, and i don’t think this will get added to the roadmap anytime soon. Sorry, I wish I had better news!

Hello. Have you found any workaround for this?

Hi @JustroX,

I don’t think there’s a workaround to this yet and the feature is not yet supported.