diff --git a/src/entities/WebSocketRequestHandler.ts b/src/entities/WebSocketRequestHandler.ts index f8c2ef2..be708d4 100644 --- a/src/entities/WebSocketRequestHandler.ts +++ b/src/entities/WebSocketRequestHandler.ts @@ -26,11 +26,13 @@ export class UserWebSocketRequestsHandler extends BaseRequestsHandler { protected getPostParam(name: string) { - throw new Error("Method not implemented."); + return this.req.data[name]; } public hasPostParameter(name: string): boolean { - throw new Error("Method not implemented."); + return this.req.data.hasOwnProperty(name) + && this.req.data[name] != null + && this.req.data[name] != undefined; } public error(code: number, message: string): void {