René's URL Explorer Experiment


Title: feat(entities): Implement watch() method for live query subscriptions by guyofeck · Pull Request #86 · base44/javascript-sdk · GitHub

Open Graph Title: feat(entities): Implement watch() method for live query subscriptions by guyofeck · Pull Request #86 · base44/javascript-sdk

X Title: feat(entities): Implement watch() method for live query subscriptions by guyofeck · Pull Request #86 · base44/javascript-sdk

Description: Summary Add watch(options, callback) method to EntityHandler for live query subscriptions Returns snapshots of matching entities whenever the result set changes Add WatchSnapshot type with type ('added', 'modified', 'removed'), entities, and timestamp Add WatchOptions type for filter, sort, fields, limit configuration Add subscribeQuery/unsubscribeQuery socket events for server communication Usage const unsubscribe = base44.entities.Task.watch( { filter: { status: 'active', priority: 'high' }, sort: '-created_date', limit: 10 }, (snapshot) => { console.log(`Change type: ${snapshot.type}`); // 'added', 'modified', 'removed' console.log(`Entities:`, snapshot.entities); // Full array of matching entities setTasks(snapshot.entities); // Update UI state directly } ); // Later, clean up unsubscribe(); Changes src/modules/entities.ts: Add watch() method with local snapshot state management src/modules/entities.types.ts: Add WatchSnapshot, WatchOptions, WatchChangeType, WatchSnapshotCallback types src/utils/socket-utils.ts: Add subscribeQuery() for emitting subscribe/unsubscribe events Test plan All 142 tests pass 20 tests for watch() method in entities-watch.test.ts 10 tests for subscribeQuery() in socket-utils-subscribeQuery.test.ts Tests cover initial data fetch with snapshots Tests cover added/modified/removed change types from socket Tests cover sorting and limit application Tests cover error handling (invalid JSON, callback errors, fetch failures) Tests cover unsubscribe cleanup and duplicate prevention Depends on: Backend PRs #2894, #2895, #2896 Fixes #83 🤖 Generated with Claude Code

Open Graph Description: Summary Add watch(options, callback) method to EntityHandler for live query subscriptions Returns snapshots of matching entities whenever the result set changes Add WatchSnapshot type with type (&...

X Description: Summary Add watch(options, callback) method to EntityHandler for live query subscriptions Returns snapshots of matching entities whenever the result set changes Add WatchSnapshot type with type (&...

Opengraph URL: https://github.com/base44/javascript-sdk/pull/86

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3997ba21-1892-478f-9f7c-350457d85523
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB880:127DAD:118D707:17998F8:6A4C6FD6
html-safe-nonce3c868abcb064465a96e8e63af8faa0e3de89e066bf8ebc8ab7807eced7545f6d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODgwOjEyN0RBRDoxMThENzA3OjE3OTk4Rjg6NkE0QzZGRDYiLCJ2aXNpdG9yX2lkIjoiNDMzODk2MzY2Mjg2MzM2NDA1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8ee1a959f79ec219b1f1651907fdc7922b9581ada66f66ef819814e8b104b12d
hovercard-subject-tagpull_request:3200969422
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/base44/javascript-sdk/pull/86/files
twitter:imagehttps://avatars.githubusercontent.com/u/18700436?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/18700436?s=400&v=4
og:image:altSummary Add watch(options, callback) method to EntityHandler for live query subscriptions Returns snapshots of matching entities whenever the result set changes Add WatchSnapshot type with type (&...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/base44/javascript-sdk git https://github.com/base44/javascript-sdk.git
octolytics-dimension-user_id234699998
octolytics-dimension-user_loginbase44
octolytics-dimension-repository_id939374418
octolytics-dimension-repository_nwobase44/javascript-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id939374418
octolytics-dimension-repository_network_root_nwobase44/javascript-sdk
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release14099438da5379150f15a2892474c7c7e6c0e55e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/base44/javascript-sdk/pull/86/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbase44%2Fjavascript-sdk%2Fpull%2F86%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbase44%2Fjavascript-sdk%2Fpull%2F86%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=base44%2Fjavascript-sdk
Reloadhttps://github.com/base44/javascript-sdk/pull/86/files
Reloadhttps://github.com/base44/javascript-sdk/pull/86/files
Reloadhttps://github.com/base44/javascript-sdk/pull/86/files
Please reload this pagehttps://github.com/base44/javascript-sdk/pull/86/files
base44 https://github.com/base44
javascript-sdkhttps://github.com/base44/javascript-sdk
Notifications https://github.com/login?return_to=%2Fbase44%2Fjavascript-sdk
Fork 9 https://github.com/login?return_to=%2Fbase44%2Fjavascript-sdk
Star 13 https://github.com/login?return_to=%2Fbase44%2Fjavascript-sdk
Code https://github.com/base44/javascript-sdk
Issues 6 https://github.com/base44/javascript-sdk/issues
Pull requests 41 https://github.com/base44/javascript-sdk/pulls
Discussions https://github.com/base44/javascript-sdk/discussions
Actions https://github.com/base44/javascript-sdk/actions
Projects https://github.com/base44/javascript-sdk/projects
Security and quality 0 https://github.com/base44/javascript-sdk/security
Insights https://github.com/base44/javascript-sdk/pulse
Code https://github.com/base44/javascript-sdk
Issues https://github.com/base44/javascript-sdk/issues
Pull requests https://github.com/base44/javascript-sdk/pulls
Discussions https://github.com/base44/javascript-sdk/discussions
Actions https://github.com/base44/javascript-sdk/actions
Projects https://github.com/base44/javascript-sdk/projects
Security and quality https://github.com/base44/javascript-sdk/security
Insights https://github.com/base44/javascript-sdk/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fbase44%2Fjavascript-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fbase44%2Fjavascript-sdk%2Fissues%2Fnew%2Fchoose
guyofeckhttps://github.com/guyofeck
mainhttps://github.com/base44/javascript-sdk/tree/main
feature/live-query-watchhttps://github.com/base44/javascript-sdk/tree/feature/live-query-watch
Conversation 4 https://github.com/base44/javascript-sdk/pull/86
Commits 2 https://github.com/base44/javascript-sdk/pull/86/commits
Checks 4 https://github.com/base44/javascript-sdk/pull/86/checks
Files changed https://github.com/base44/javascript-sdk/pull/86/files
Please reload this pagehttps://github.com/base44/javascript-sdk/pull/86/files
feat(entities): Implement watch() method for live query subscriptions https://github.com/base44/javascript-sdk/pull/86/files#top
Show all changes 2 commits https://github.com/base44/javascript-sdk/pull/86/files
bc54562 feat(entities): Implement watch() method for live query subscriptions guyofeck Jan 22, 2026 https://github.com/base44/javascript-sdk/pull/86/commits/bc54562ca641051130e74bdd03efd2b5ff8e8c78
0223ecf test(watch): Add comprehensive tests for watch() and subscribeQuery() guyofeck Jan 26, 2026 https://github.com/base44/javascript-sdk/pull/86/commits/0223ecf304577cad14e4287d921a21c5dc3bb42d
Clear filters https://github.com/base44/javascript-sdk/pull/86/files
Please reload this pagehttps://github.com/base44/javascript-sdk/pull/86/files
Please reload this pagehttps://github.com/base44/javascript-sdk/pull/86/files
entities.ts https://github.com/base44/javascript-sdk/pull/86/files#diff-d475f8bcccb887fc3182c1ef9590d5c0326b8b52fbce76001b791fbf07fc31ca
entities.types.ts https://github.com/base44/javascript-sdk/pull/86/files#diff-14d05d65c8cb9065b3eeb65eb7de41177c20c52f66618d9b0c08e1e1b7f770eb
socket-utils.ts https://github.com/base44/javascript-sdk/pull/86/files#diff-9637f4b56da8f4f3e2202f78152b01411cf6d80d6c38157708e73423c7a90ca3
entities-watch.test.ts https://github.com/base44/javascript-sdk/pull/86/files#diff-043aa49ae2c60473374cd9710187af55cbdf7a34baf39ac3e49385fda06ffc78
socket-utils-subscribeQuery.test.ts https://github.com/base44/javascript-sdk/pull/86/files#diff-f94e22fc7c9ed92a3656cdfbeced4cc30f63df055686fb45ca008fc1e1fb94ae
src/modules/entities.tshttps://github.com/base44/javascript-sdk/pull/86/files#diff-d475f8bcccb887fc3182c1ef9590d5c0326b8b52fbce76001b791fbf07fc31ca
View file https://github.com/base44/javascript-sdk/blob/0223ecf304577cad14e4287d921a21c5dc3bb42d/src/modules/entities.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/base44/javascript-sdk/pull/86/{{ revealButtonHref }}
https://github.com/base44/javascript-sdk/pull/86/files#diff-d475f8bcccb887fc3182c1ef9590d5c0326b8b52fbce76001b791fbf07fc31ca
https://github.com/base44/javascript-sdk/pull/86/files#diff-d475f8bcccb887fc3182c1ef9590d5c0326b8b52fbce76001b791fbf07fc31ca
https://github.com/base44/javascript-sdk/pull/86/files#diff-d475f8bcccb887fc3182c1ef9590d5c0326b8b52fbce76001b791fbf07fc31ca
https://github.com/base44/javascript-sdk/pull/86/files#diff-d475f8bcccb887fc3182c1ef9590d5c0326b8b52fbce76001b791fbf07fc31ca
https://github.com/base44/javascript-sdk/pull/86/files#diff-d475f8bcccb887fc3182c1ef9590d5c0326b8b52fbce76001b791fbf07fc31ca
src/modules/entities.types.tshttps://github.com/base44/javascript-sdk/pull/86/files#diff-14d05d65c8cb9065b3eeb65eb7de41177c20c52f66618d9b0c08e1e1b7f770eb
View file https://github.com/base44/javascript-sdk/blob/0223ecf304577cad14e4287d921a21c5dc3bb42d/src/modules/entities.types.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/base44/javascript-sdk/pull/86/{{ revealButtonHref }}
https://github.com/base44/javascript-sdk/pull/86/files#diff-14d05d65c8cb9065b3eeb65eb7de41177c20c52f66618d9b0c08e1e1b7f770eb
https://github.com/base44/javascript-sdk/pull/86/files#diff-14d05d65c8cb9065b3eeb65eb7de41177c20c52f66618d9b0c08e1e1b7f770eb
https://github.com/base44/javascript-sdk/pull/86/files#diff-14d05d65c8cb9065b3eeb65eb7de41177c20c52f66618d9b0c08e1e1b7f770eb
https://github.com/base44/javascript-sdk/pull/86/files#diff-14d05d65c8cb9065b3eeb65eb7de41177c20c52f66618d9b0c08e1e1b7f770eb
https://github.com/base44/javascript-sdk/pull/86/files#diff-14d05d65c8cb9065b3eeb65eb7de41177c20c52f66618d9b0c08e1e1b7f770eb
src/utils/socket-utils.tshttps://github.com/base44/javascript-sdk/pull/86/files#diff-9637f4b56da8f4f3e2202f78152b01411cf6d80d6c38157708e73423c7a90ca3
View file https://github.com/base44/javascript-sdk/blob/0223ecf304577cad14e4287d921a21c5dc3bb42d/src/utils/socket-utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/base44/javascript-sdk/pull/86/{{ revealButtonHref }}
https://github.com/base44/javascript-sdk/pull/86/files#diff-9637f4b56da8f4f3e2202f78152b01411cf6d80d6c38157708e73423c7a90ca3
https://github.com/base44/javascript-sdk/pull/86/files#diff-9637f4b56da8f4f3e2202f78152b01411cf6d80d6c38157708e73423c7a90ca3
https://github.com/base44/javascript-sdk/pull/86/files#diff-9637f4b56da8f4f3e2202f78152b01411cf6d80d6c38157708e73423c7a90ca3
https://github.com/base44/javascript-sdk/pull/86/files#diff-9637f4b56da8f4f3e2202f78152b01411cf6d80d6c38157708e73423c7a90ca3
https://github.com/base44/javascript-sdk/actions/runs/21351633665/job/61449439035?pr=86
https://github.com/base44/javascript-sdk/pull/86/files#diff-9637f4b56da8f4f3e2202f78152b01411cf6d80d6c38157708e73423c7a90ca3
https://github.com/base44/javascript-sdk/pull/86/files#diff-9637f4b56da8f4f3e2202f78152b01411cf6d80d6c38157708e73423c7a90ca3
https://github.com/base44/javascript-sdk/pull/86/files#diff-9637f4b56da8f4f3e2202f78152b01411cf6d80d6c38157708e73423c7a90ca3
Please reload this pagehttps://github.com/base44/javascript-sdk/pull/86/files
Please reload this pagehttps://github.com/base44/javascript-sdk/pull/86/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.