Comparing version 0.14.4 to 0.14.5
{ | ||
"name": "uws", | ||
"version": "0.14.4", | ||
"version": "0.14.5", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "install": "node-gyp rebuild > build_log.txt 2>&1 || exit 0" |
@@ -6,2 +6,3 @@ 'use strict'; | ||
const EE_ERROR = 'Registering more than one listener to a WebSocket is not supported.'; | ||
const DEFAULT_PAYLOAD_LIMIT = 16777216; | ||
@@ -48,3 +49,3 @@ function noop() {} | ||
const clientGroup = native.client.group.create(); | ||
const clientGroup = native.client.group.create(0, DEFAULT_PAYLOAD_LIMIT); | ||
@@ -378,3 +379,3 @@ native.client.group.onConnection(clientGroup, (external) => { | ||
this.serverGroup = native.server.group.create(nativeOptions, options.maxPayload === undefined ? 16777216 : options.maxPayload); | ||
this.serverGroup = native.server.group.create(nativeOptions, options.maxPayload === undefined ? DEFAULT_PAYLOAD_LIMIT : options.maxPayload); | ||
@@ -381,0 +382,0 @@ // can these be made private? |
9246496
485