ChatClient
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
addChatAnnouncement(message: string, sendingTeam: string) Chat box implementation for event announcements (capturing, etc) |
|
| public |
addChatLine(name: string, message: string, me: boolean, sendingTeam: string) Chat box implementation for the users. |
|
| public |
addLoginMessage(name: *, me: *) |
|
| public |
addPrivateMessage(name: string, message: string, me: boolean) Chat box implementation for the users. |
|
| public |
addSystemLine(message: *) |
|
| public |
appendMessage(innerHTML: string, color: string) Places the message DOM node into the chat box. |
|
| public |
|
|
| public |
registerCommand(name: *, description: *, callback: *) |
|
| public |
Defines all commands and their behaviors. |
|
| public |
sendChat(key: *) |
|
Public Constructors
public constructor() source
Public Methods
public addChatAnnouncement(message: string, sendingTeam: string) source
Chat box implementation for event announcements (capturing, etc)
public addChatLine(name: string, message: string, me: boolean, sendingTeam: string) source
Chat box implementation for the users.
public addLoginMessage(name: *, me: *) source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| me | * |
public addPrivateMessage(name: string, message: string, me: boolean) source
Chat box implementation for the users.
public addSystemLine(message: *) source
Params:
| Name | Type | Attribute | Description |
| message | * |
public appendMessage(innerHTML: string, color: string) source
Places the message DOM node into the chat box.
public printHelp() source
public registerCommand(name: *, description: *, callback: *) source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| description | * | ||
| callback | * |
public sendChat(key: *) source
Params:
| Name | Type | Attribute | Description |
| key | * |
