Relevant socket.io code to sync time between client and server