Is it possible to for a nodejs backend to connect to another nodejs backend in anoither project?
I tried using websockets to do the connection.
I followed the client and server examples here websocket - npm (npmjs.com) but it doesnt seem to work. The project that connects is getting a 502 error.
Connect Error: Error: Server responded with a non-101 status: 502 Bad Gateway
Response Headers Follow:
server: awselb/2.0
date: Tue, 04 Jul 2023 09:57:16 GMT
content-type: text/html
content-length: 122
connection: keep-alive
looks like you’re wrapping the headers in an additional object. docs say you just pass headers… but the deep nested brackets are confusing. could you check?