Skip to content
/ core Public
forked from runejs/common

Core functionality for RuneJS applications.

License

Notifications You must be signed in to change notification settings

pvtservr/core

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RuneJS Discord Server

RuneJS

@runejs/core

Core logging, networking, and buffer functionality for RuneJS applications.

Logger

  • RuneLogger singleton Pino logger wrapper:
    • logger.info(...messages)
    • logger.debug(...messages)
    • logger.warn(...messages)
    • logger.error(...messages)
    • logger.fatal(...messages)
    • logger.trace(...messages)
  • Ability to set the Pino logging date/time formatting function via setLoggerTimeFn(Pino.TimeFn)
  • Ability to set the Pino logging pretty print config value via setLoggerPrettyPrint(boolean)
  • Setting of all Pino logging options via setLoggerOptions(Pino.LoggerOptions)

Byte Buffer

  • Node Uint8Array wrapper with additional utility functions.
  • Unified configurable get and put methods to easily move bytes within the buffer.
  • Int24, Smart, Long and String type support.
  • Big endian, little endian, and mixed endian support.
  • Bit access through openBitBuffer(), putBits(), and closeBitBuffer()

Networking Components

openServer(name, host, port, connectionHandlerFactory)

Spins up a new Node Socket server with the specified host and port.

SocketConnectionHandler

Handles connections made to a Socket server opened via openServer()

ServerConfigOptions

Options for a configured Socket server, imported using the parseServerConfig() function.

About

Core functionality for RuneJS applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%