Class: Session

Session

A game session that connects and manages multiple players on the client side.

<protected> new Session(myself, messageBus, sessionData)

Parameters:
Name Type Description
myself module:client/player~Player the player instance that represents my own client.
messageBus
sessionData object data object from the server that describes this session
Source:

Mixes In

Members

<readonly> joinSessionUrl :string

URL you have to visit in order to connect to this session.
Type:
  • string
Source:

<readonly> myself :module:client/player~Player

The player instance that represents my own client.
Type:
  • module:client/player~Player
Source: