-
Notifications
You must be signed in to change notification settings - Fork 1
/
server.js
32 lines (24 loc) · 667 Bytes
/
server.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* This function should return a string that will be used as the server's name.
* It must be short enough to fit in the NETronics Connect! menu.
**/
function getName() {
return 'Server Name'
}
/**
* This function will be called when a user connects to the server.
**/
function onConnect() {
}
/**
* This function will be called approximately 30 times a
* second while a user is connected to the server.
**/
function onUpdate() {
}
/**
* This function will be called every time the connected user presses a key.
* @param {number} key the ASCII representation of the key pressed
**/
function onInput(key) {
}