Closed DenisFeedYT closed 4 years ago
To use less memory peer is stored directly in WebSocket object that has the following interface: https://github.com/uNetworking/uWebSockets.js/blob/master/docs/index.d.ts#L12
In wt-tracker source code you can treat a peer as WebSocket interface instance and call
/** Returns the remote IP address */
getRemoteAddress() : ArrayBuffer;
ok, works, thanks.
Hello how can i get ip of peer in FastTracker.processMessage(json, peer) ?