Jump to content

[Answered] Tommy doesn't support websocket with nodejs


nightcatlu

Recommended Posts

I have made some try and find that tommy server dones't support websocket with nodejs

!~passenger-envvars: VU5JUVVFX0lEAFpma251WlJlTC1oMTBWYXc2Zml1NkFBQUFSUQBTQ1JJUFRfVVJMAC93cwBTQ1JJUFRfVVJJAGh0dHBzOi8vbmlnaHRjYXRsdS5oZWxpb2hvLnN0L3dzAFBFUkw1TElCAC91c3Ivc2hhcmUvYXdzdGF0cy9saWI6L3Vzci9zaGFyZS9hd3N0YXRzL3BsdWdpbnMAUEFTU0VOR0VSX0NPTVBJTEVfTkFUSVZFX1NVUFBPUlRfQklOQVJZADAAUEFTU0VOR0VSX0RPV05MT0FEX05BVElWRV9TVVBQT1JUX0JJTkFSWQAwAEhUVFBTAG9uAA==
!~passenger-client-address: 2404:c805:bd00:bc00:xxxx
x-forwarded-for: 2404:c805:bd00:bc00:4a21:bff:xxx
!~passenger-proto: https
x-forwarded-proto: https
sec-websocket-extensions: permessage-deflate; client_max_window_bits
sec-websocket-version: 13
sec-websocket-key: VQNcDm597M80V68NcYDyXg==
x-accel-internal: /internal-nginx-static-location

 

it lacks headers:

Connection: Upgrade
Upgrade: websocket

 

Link to comment
Share on other sites

I have managed to resolve the issue by switch off the "proxy to apache" in the "Nginx and apache setting" options.

I would like to share information here.

1. we should not concern the Nodejs listen port because it is taken by  by passenger plugin.  Nodejs will auto listen on unix socket and communication. 

it will skip the port setting.

2. we have to switch off the "proxy to apache". so Nginx will proxy all requests to Nodejs.

 

😀

 

Link to comment
Share on other sites

Glad to see you figured it out. I saw this yesterday afternoon and was going to ask Krydos about it but then got distracted since I was at work at the time. Please let us know if you need anything else.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...