fix: 200 === OK

This commit is contained in:
Alexis Tyler
2021-06-21 21:31:06 +09:30
parent 8903f303c1
commit 18628f2f5e

View File

@@ -167,7 +167,7 @@ export class CustomSocket {
// Fallback to a "ok" disconnect
// 4200 === ok
this.logger.error('Disconnect with code=%s reason=%s', code, 'OK');
this.connection.close(4200, '{"message":"OK"}');
this.connection.close(4200, 'OK');
} catch (error: unknown) {
this.logger.error('Failed disconnecting code=%s reason=%s', code, (error as Error).message);
} finally {