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).
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:
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.
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