0.15.0
Changes since 0.14.x
This release modernizes the code to PHP 8.0 standards, and improves some internal structure to open the gates for future extension.
No significant changes have been made, and the API is mostly the same as 0.14.
API
- Use typed properties and promoted properties wherever possible
- Extracted generic session logic into
raklib\generic\Session
raklib\server\Session
is replaced by a much smallerraklib\server\ServerSession
- it inherits most of its logic fromgeneric\Session
- Added specialized
client\ClientSocket
andserver\ServerSocket
with different functionality for each use case isTemporal
renamed toisTemporary
wherever appropriate- Added
DisconnectReason
constants. All disconnect APIs now use these instead of hardcoded string messages.
Tools
- Added new scripts:
tools/scan.php
to scan for servers on a given broadcast addresstools/proxy.php
to set up a simple tunnel between a client and server (useful for getting a Windows Minecraft client onto a WSL BDS instance)