@colyseus/loadtest
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "@colyseus/loadtest", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Utility tool for load testing Colyseus.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -274,6 +274,6 @@ import * as path from "path"; | ||
// overwrite original send function to trap sent bytes. | ||
const _send = room.connection.send; | ||
room.connection.send = function(data) { | ||
bytesSent += data.length; | ||
_send.call(room.connection, data); | ||
const _send = room.connection.ws.send; | ||
room.connection.ws.send = function(data) { | ||
bytesSent += data.byteLength; | ||
_send.call(room.connection.ws, data); | ||
} | ||
@@ -280,0 +280,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96549