Type aliases
GameCounts
GameCounts: Partial<Record<GameMap, number>>
GetSerialized
GetSerialized<T>: T extends {} ? X : never
Type parameters
MessageListener
Message
Listener<T, ContextType>: (message: T, direction: MessageDirection, context: ContextType) => void
Type parameters
Type declaration
-
-
Parameters
-
message: T
-
-
context: ContextType
Returns void
MessageMapKey
MessageMapKey: `${string}:${number}`
MissingPackets
MissingPackets: number[]
@skeldjs/protocol
This package contains important information about the Among Us network protocol, as well as tools to deserialise and serialise packets. While you can install it on its own with
npm install --save @skeldjs/protocol
oryarn add @skeldjs/protocol
, it is one package of a bigger project, skeldjs.You can view auto-updating documentation for this package hosted at github pages at https://skeld.js.org/modules/protocol.html
You can also view more detailed information about the protocol at https://github.com/codyphobe/among-us-protocol
Basic Usage
It's recommended to keep a constant stream of packets going through the decoder, rather than picking out or sending one or two.
Parsing a packet in-place using the
parse
method is discouraged, as it does not provide sufficient intellisense for the messages.Listen for a join game packet going through the decoder.