Make idleTimeout a multiple of 4 in README example (#666)

Using the example provided in the README outputs the following warning;

> Warning: idleTimeout should be a multiple of 4!

This PR updates the example according to the warning.
This commit is contained in:
Alan Smithee
2022-05-04 19:57:42 +02:00
committed by GitHub
parent e23d6eda45
commit 3b1bba8af8

View File

@@ -22,7 +22,7 @@ require('uWebSockets.js').SSLApp({
}).ws('/*', {
/* There are many common helper features */
idleTimeout: 30,
idleTimeout: 32,
maxBackpressure: 1024,
maxPayloadLength: 512,
compression: DEDICATED_COMPRESSOR_3KB,