This PR fixes the issue where console monitoring was empty when a specific shard was targeted on the official Screeps server.
Changes:
Unified Subscription: Changed WebSocket subscription path from shard/console (invalid) to the global console channel.
Shard Filtering: Implemented client-side filtering in handleConsoleEvent to only display logs matching the targeted shard.
Precise Timing: Retained the shard-specific api.time() call for accurate tick duration tracking.
Tests: Added and updated 48 unit tests verifying the fix and shard filtering logic.
Distribution: Rebuilt dist/index.js and bumped version to v0.2.1.
This PR fixes the issue where console monitoring was empty when a specific shard was targeted on the official Screeps server.
### Changes:
- **Unified Subscription**: Changed WebSocket subscription path from `shard/console` (invalid) to the global `console` channel.
- **Shard Filtering**: Implemented client-side filtering in `handleConsoleEvent` to only display logs matching the targeted shard.
- **Precise Timing**: Retained the shard-specific `api.time()` call for accurate tick duration tracking.
- **Tests**: Added and updated 48 unit tests verifying the fix and shard filtering logic.
- **Distribution**: Rebuilt `dist/index.js` and bumped version to `v0.2.1`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR fixes the issue where console monitoring was empty when a specific shard was targeted on the official Screeps server.
Changes:
shard/console(invalid) to the globalconsolechannel.handleConsoleEventto only display logs matching the targeted shard.api.time()call for accurate tick duration tracking.dist/index.jsand bumped version tov0.2.1.