diff --git a/types/ws/ws-tests.ts b/types/ws/ws-tests.ts index 51d37bea9c..1b30da48ed 100644 --- a/types/ws/ws-tests.ts +++ b/types/ws/ws-tests.ts @@ -92,3 +92,10 @@ import * as https from 'https'; } }); } + +{ + const ws = new WebSocket('ws://www.host.com/path', { + maxPayload: 10 * 1024 * 1024 + }); + ws.on('open', () => ws.send('something assume to be really long')); +}