Repository navigation
Feature: Tiled Websocket Hooks - #73
Merged
Merged
Conversation
# Conflicts: # src/api/tiled/README.md # src/api/tiled/SKILLS.md # src/index.ts
Contributor
✅ Test ResultsAll tests passed! Complete Test Suite Coverage:
Test Environment: Node.js 20.x |
SeijDeLeon
marked this pull request as ready for review
October 13, 2026 21:09
Contributor
✅ Test ResultsAll tests passed! Complete Test Suite Coverage:
Test Environment: Node.js 20.x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tiled WebSocket streaming
Adds live streaming from Tiled's
/api/v1/stream/single/{path}websocket. It sits alongside the existing HTTP/TanStack Query client and doesn't change it.Core client (
src/api/tiled/client/websocket/)TiledWebSocketClientandTiledSubscription: framework-independent, one socket per nodearray-ref, ragged); narrow ontype, no castsbuildTiledWebSocketUrl: buildsws:///wss://URLs from the existingtiledApiUrl; no new config option{"type":"auth", ...}), never in the URLlastSequence + 1(Tiled'sstartis inclusive) and duplicates are droppedReact hooks
useTiledSubscription, plususeTiledContainerSubscription,useTiledTableSubscriptionanduseTiledArraySubscriptionFinchConfigProvider/TiledApiProvider)accumulate/maxRows,trackLatest)useTiledInvalidate()@/api/tiledand the package entryTest harness: Test → Tiled WebSocket (
/test/tiled-websocket)metadata.stop, create an array, write a frame, append a row), plus a Python snippet for table appendsTests and docs
TILED_LIVE_URL=... npx vitest run TiledWebSocket.liveSKILLS.mdandTiledHooks.mdServer and behaviour notes
streaming_cachein its config, or every stream connection fails with a 500includePayloadoption;array-refonly comes fromput_data_sourcearray-refauto-fetch, a Bluesky run hookTesting
npm run lint,npm run test:runandnpm run buildpass