Summary
Client socket connection keeps getting disconnected, reconnect, disconnected, .... and so on
Steps To Reproduce
I am using Kong (https://github.com/Kong/kong) as a API gateway. The websocket server is proxied through Kong
- Websocket server: http://192.168.99.100:9696
- Kong proxy:
- Server: http://192.168.99.100:9000
- API:
- upstream: http://192.168.99.100:9696
- uris: /api/socket.*
- strip uris: yes
Additional Details & Logs In picture: left terminal is server, right is client. Client log shows:
engine.io-client:socket socket close with reason: "transport close" +6s
socket.io-client:manager onclose +1ms
socket.io-client:manager cleanup +0ms
socket.io-client:socket close (transport close) +0ms
P/s: Tried with a nginx proxy instead of Kong, and it works fine, the client socket connection stays without being closed.
