mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-10-30 17:14:43 +00:00 
			
		
		
		
	Implement new methods
This commit is contained in:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user