Home Reference Source

References

Class Summary

Static Public Class Summary
public

The Game model persists data about a single game room, including players, dealer and other state information.

public
public

Instantiates new users

public

Creates a collection of Users

Variable Summary

Static Public Variable Summary
public

dummy: *

public

onConnect(io: Object, socket: Object): *

Function for setting up a users socket connection

public

onDisconnect(io: Object, socket: Object): *

The onDisonnect function is used to clean up a users connection to a game

public

sendClueMessage(io: Object, socket: Object, action: Object): *

This function sends a clue message to all the members of a room through sockets.

public

sendGuessMessage(io: Object, socket: Object, action: Object): *

This function sends a guess message to all the members of a room through sockets.

public

sendPlayerJoinGame(io: Object, socket: Object, user: Object): *

This function sends a message letting the users of a game know that another user has joined.

public
public

sendWinner(io: Object, socket: Object, user: Object): *

This function sends a clue message to all the members of a room through sockets.