sockscape/client/src/SlaveProtocol.ts

11 lines
295 B
TypeScript
Raw Normal View History

2017-09-15 20:55:02 +00:00
class SlaveProtocol {
public static get packetHandlers(): PacketHandle[] {
return [
{ id: 1, event: this.userLoginResponse }
];
}
private static userLoginResponse(data: Packet, conn: Connection): void {
console.log("mario has logged in");
}
}