TransportStream

Base class for anything that should be sending or receiving data from the player

Constructor

new TransportStream()

Methods

attach(socket)

Attach a socket to this stream

Parameters:
Name Type Description
socket *

command(command, …args) → {*}

A subtype-safe way to execute commands on a specific type of stream that invalid types will ignore. For given input for command (example, "someCommand" ill look for a method called executeSomeCommand on the TransportStream

Parameters:
Name Type Attributes Description
command string
args * <repeatable>
Returns:
*