add test for maxPayload in @types/ws

This commit is contained in:
Yuan Gao
2018-08-07 18:50:35 +08:00
parent f3f6643104
commit 8dc60fa7a7

View File

@@ -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'));
}