Server Class
The server file
Methods
db.close
()
Close the database and send data to the client afterwards
handler
()
Node.js/Socket.io webserver callback, serves files
openDb
()
Open the database
Returns:
opened database
Events
connection
Called when a client connection is established
Event Payload:
-
socket
Object
get_data
Called when a client requests timenet data
Event Payload:
-
data
Objectcontains the timenet id that is requested