             @rooms      = {}
             @token      = Token
 
+        # Send informations about the new peer to all the peers connected in the room.
         notifyNewPeer     : (socket) =>
             clientsInfos    = []
             sockets         = @rooms[socket.rid]

                else
                    @clientValidation param

        tokenValidation   : (param) =>
            Request.get "#{Config.Restapi.Url}/token/#{param.token}", (e, r, data) =>
                if e? or r.statusCode > 200

                if (error)
                    console.error error

        # Function called when a message is received by a peer.
        # If the peer is not authentificated, it'll call the tokenvalidation function.
        socketOnMessage   : (socket, message) =>
            if not message.data
                return
