(data)
| 26 | var socket = io(); |
| 27 | |
| 28 | function addParticipantsMessage (data) { |
| 29 | var message = ''; |
| 30 | if (data.numUsers === 1) { |
| 31 | message += "there's 1 participant"; |
| 32 | } else { |
| 33 | message += "there are " + data.numUsers + " participants"; |
| 34 | } |
| 35 | log(message); |
| 36 | } |
| 37 | |
| 38 | // Sets the client's username |
| 39 | function setUsername () { |