mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
add test for maxPayload in @types/ws
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user