enmasseio / timesync

Time synchronization between peers
MIT License
336 stars 59 forks source link

Quarter of a second out of sync #23

Open GeertRoks opened 6 years ago

GeertRoks commented 6 years ago

Hi,

I'm trying to play algoritmic music in sync on a network of computers, but with the examples of express and socket provided. The system is constantly quarter of a second out of time when I have this code:

socket = io.connect("http://192.168.0.100:3000"); // This connects the sockets to my server

But when I leave it on localhost, then it is in time with the express example, but I have no socket connections then. With the socket example its still about a quarter of a second out of time.

socket = io.connect("http://localhost:3000");

Am I doing something wrong? I use a combination of Express and Socket for this project.

I hope that anyone can help me with this. If I need to provide some more info then let me know (this is my first issue).

Geert

josdejong commented 5 years ago

Your issue sounds similar to #18.

Could this be something related to socket.io? Does the same happen with plain HTTP?

I'm afraid I will not have time to dive into this any time soon.