JSDoc for extra/

Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
Matthew Nickson 2023-01-05 19:57:28 +00:00
parent bc7271b99c
commit c7eb72e73b
No known key found for this signature in database
GPG key ID: BF229DCFD4748E05
8 changed files with 50 additions and 8 deletions

View file

@ -135,6 +135,11 @@ server.listen({
udp: 5300
});
/**
* Get human readable request type from request code
* @param {number} code Request code to translate
* @returns {string} Human readable request type
*/
function type(code) {
for (let name in Packet.TYPE) {
if (Packet.TYPE[name] === code) {