Skip to content

v1.0.0 - RuneJS Core initial release

Compare
Choose a tag to compare
@Tynarus Tynarus released this 24 Dec 22:25

Features

Logger

  • Full console logging wrappers:
    • logger.info(...messages)
    • logger.debug(...messages)
    • logger.warn(...messages)
    • logger.error(...messages)
    • logger.fatal(...messages)
    • logger.trace(...messages)
  • Ability to set logging date/time format via setLoggerDateFormat(format)

Byte Buffer

  • Node Uint8Array wrapper with additional utility functions.
  • Unified configurable get and put methods to easily move bytes within the buffer.
  • Int24 and Smart support.
  • Long support.
  • String 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.