re-implement binrect protocol
pretty easy since we can just subclass guac
This commit is contained in:
@@ -77,6 +77,7 @@ export interface IProtocolHandlers {
|
||||
// Abstracts away all of the CollabVM protocol details
|
||||
export interface IProtocol {
|
||||
init(u: User): void;
|
||||
dispose(): void;
|
||||
|
||||
// Sets handler object.
|
||||
setHandler(handlers: IProtocolHandlers): void;
|
||||
@@ -98,6 +99,10 @@ export interface IProtocol {
|
||||
|
||||
sendLoginResponse(ok: boolean, message: string | undefined): void;
|
||||
|
||||
sendAdminLoginResponse(ok: boolean, modPerms: number | undefined): void;
|
||||
sendAdminMonitorResponse(output: string): void;
|
||||
sendAdminIPResponse(username: string, ip: string): void;
|
||||
|
||||
sendChatMessage(username: '' | string, message: string): void;
|
||||
sendChatHistoryMessage(history: ProtocolChatHistory[]): void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user