mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-29 15:44:26 -05:00
21 lines
767 B
JavaScript
21 lines
767 B
JavaScript
export default {
|
|
regex:
|
|
/^\[([0-9.:-]+)]\[([ 0-9]*)]LogNet: UNetConnection::PendingConnectionLost\. \[UNetConnection\] RemoteAddr: ([0-9a-f]{32}):[0-9]+, Name: (SteamNetConnection_[0-9]+), Driver: GameNetDriver (SteamNetDriver_[0-9]+), IsServer: YES, PC: NULL, Owner: NULL, UniqueId: (?:Steam:UNKNOWN \[.+\]|INVALID) bPendingDestroy=0/,
|
|
onMatch: (args, logParser) => {
|
|
const data = {
|
|
raw: args[0],
|
|
time: args[1],
|
|
chainID: args[2],
|
|
steamID: args[3],
|
|
connection: args[4],
|
|
driver: args[5]
|
|
};
|
|
/* This is Called when a pending client fails
|
|
Only used to cleanup clients in eventstore
|
|
*/
|
|
|
|
delete logParser.eventStore.clients[args[4]];
|
|
logParser.emit('PENDING_CONNECTION_DESTROYED', data);
|
|
}
|
|
};
|