@mu-online-js/mu-packet-manager
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@mu-online-js/mu-packet-manager", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "It allows you to define packet structures in a single place and easily convert between buffer and object representations of these structures.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -54,5 +54,4 @@ # mu-online-js packet manager | ||
const data = Buffer;/* a buffer received from the client/server */; | ||
const messageObj = new packetManager() | ||
.useStruct(structs.CSServerListResponse) | ||
.fromBuffer(data); | ||
const messageObj = new packetManager().fromBuffer(data) | ||
.useStruct(structs.CSServerListResponse).toObject(); | ||
``` | ||
@@ -59,0 +58,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
14589
65