Fix Web Sockets. Form into library. Move demo to demo folder. Split demo between sse and websocket.

This commit is contained in:
2026-09-17 11:49:21 +00:00
parent 55d09d048e
commit 711ecba117
10 changed files with 134 additions and 96 deletions
+10 -3
View File
@@ -1,18 +1,25 @@
{
"name": "minimal-sync",
"name": "@xo-cash/sync-client",
"version": "1.0.0",
"description": "",
"description": "A minimal sync client for the XO Cash Sync Server",
"main": "index.js",
"type": "module",
"scripts": {
"build": "tsc",
"start": "tsx src/index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@types/node": "^26.1.1",
"@types/node": "^26.6.1",
"tsx": "^4.23.1",
"typescript": "^7.0.2"
},