fix: Websocket propper error when the payload size is too big #586
pull_request.workflow.yml
on: pull_request
Matrix: Lint
Matrix: Unit Tests
Documentation Snippet Tests
0s
Matrix: Functional Tests
Annotations
21 errors
Lint (20):
src/protocols/WebSocket.ts#L246
Replace `this.maxPayloadSize·!==·null·&&·Buffer.byteLength(JSON.stringify(request),·'utf8')·>·this.maxPayloadSize)·{` with `⏎······this.maxPayloadSize·!==·null·&&⏎······Buffer.byteLength(JSON.stringify(request),·"utf8")·>·this.maxPayloadSize`
|
Lint (20):
src/protocols/WebSocket.ts#L247
Replace `··` with `)·{`
|
Lint (20):
src/protocols/WebSocket.ts#L248
Insert `·`
|
Lint (20):
src/protocols/WebSocket.ts#L382
Insert `·`
|
Lint (20):
src/protocols/WebSocket.ts#L385
Delete `··`
|
Lint (20):
src/protocols/WebSocket.ts#L386
Delete `··`
|
Lint (20):
src/protocols/WebSocket.ts#L387
Delete `····`
|
Lint (20):
src/protocols/WebSocket.ts#L388
Replace `················` with `··········`
|
Lint (20):
src/protocols/WebSocket.ts#L390
Replace `················` with `··········`
|
Lint (20):
src/protocols/WebSocket.ts#L391
Replace `······if·(data.result·&&·data.result.server·&&·data.result.server.maxRequestSize)·{` with `if·(⏎············data.result·&&⏎············data.result.server·&&⏎············data.result.server.maxRequestSize`
|
Lint (18)
The job was canceled because "_20" failed.
|
Lint (18):
src/protocols/WebSocket.ts#L246
Replace `this.maxPayloadSize·!==·null·&&·Buffer.byteLength(JSON.stringify(request),·'utf8')·>·this.maxPayloadSize)·{` with `⏎······this.maxPayloadSize·!==·null·&&⏎······Buffer.byteLength(JSON.stringify(request),·"utf8")·>·this.maxPayloadSize`
|
Lint (18):
src/protocols/WebSocket.ts#L247
Replace `··` with `)·{`
|
Lint (18):
src/protocols/WebSocket.ts#L248
Insert `·`
|
Lint (18):
src/protocols/WebSocket.ts#L382
Insert `·`
|
Lint (18):
src/protocols/WebSocket.ts#L385
Delete `··`
|
Lint (18):
src/protocols/WebSocket.ts#L386
Delete `··`
|
Lint (18):
src/protocols/WebSocket.ts#L387
Delete `····`
|
Lint (18):
src/protocols/WebSocket.ts#L388
Replace `················` with `··········`
|
Lint (18):
src/protocols/WebSocket.ts#L390
Replace `················` with `··········`
|
Lint (18):
src/protocols/WebSocket.ts#L391
Replace `······if·(data.result·&&·data.result.server·&&·data.result.server.maxRequestSize)·{` with `if·(⏎············data.result·&&⏎············data.result.server·&&⏎············data.result.server.maxRequestSize`
|