Core logging, networking, and buffer functionality for RuneJS applications.
npm install @runejs/core
!RuneJS
logger is exported as a singleton Pino logging wrapper, offering the following functions:
logger.info(...messages)
logger.debug(...messages)
logger.warn(...messages)
logger.error(...messages)
logger.fatal(...messages)
logger.trace(...messages)
setLoggerTimeFn(Pino.TimeFn)
setLoggerPrettyPrint(boolean)
setLoggerOptions(Pino.LoggerOptions)
ByteBuffer is the main export.
Uint8Array wrapper with additional utility functions.
get and put methods to easily move bytes within the buffer.
openBitBuffer(), putBits(), and closeBitBuffer()
SocketServer
SocketServer.launch(serverName, hostName, port, connectionHandlerFactory)
ServerConfigOptions
parseServerConfig() function.
Gzip handles Gzip compression and decompression.
Bzip2 handles Bzip2 compression and decompression.
Xtea