rewrite websocket requests in rewrite config
Unanswered
Northern Fulmar posted this in #help-forum

Northern FulmarOP
Hey guys, just wondering if anyone knows how I can rewrite websocket requests to another port?
Ie. I have 2 servers :3000 and :3001
:3000 is my nextjs server and it rewrites API requests to :3001
I've tried writing ws://localhost:3000 to ws://localhost:3001 but that didn't seem to work ( I can connect using localhost:3001 but not localhost:3000)
Ie. I have 2 servers :3000 and :3001
:3000 is my nextjs server and it rewrites API requests to :3001
I've tried writing ws://localhost:3000 to ws://localhost:3001 but that didn't seem to work ( I can connect using localhost:3001 but not localhost:3000)