andrewvy / league-node

League of Legends RTMP Client in Node.js
5 stars 6 forks source link

Timeout reached, closing socket. #4

Open NitroXenon opened 9 years ago

NitroXenon commented 9 years ago

After running league-node for a hour, when I call the api functions, no data is received and console always log : Timeout reached, closing socket.

So, how can I run league-node for a long time? Thanks a lot.

andrewvy commented 9 years ago

Hmm, and you're using the heartbeat function like in the example?

NitroXenon commented 9 years ago

Yea, heartbeat every 5s.

NitroXenon commented 9 years ago

This is my example api server which has the error above : https://gist.github.com/NitroXenon/56d66dd6cc989093125e