Arthur Sepiol
5874cf80f5
Add authentication, Redis pub/sub, and error handling to SSE
...
Improvements:
- Add Redis pub/sub support for multi-server deployments
- Add authentication check to SSE stream endpoint
- Add 30s heartbeat keepalive for long-lived connections
- Implement exponential backoff reconnection logic in client
- Fix TypeScript types (websiteId optional, timer types)
- Use specific query key invalidation instead of broad match
- Fix undefined access in session-events listener map
2025-12-10 16:06:18 +03:00
Arthur Sepiol
ef9a382cdd
Add real-time session updates via Server-Sent Events
...
Implements push-based real-time updates for the Sessions page. New sessions now appear instantly without manual reload or polling.
Changes:
- Add SSE event emitter for session creation notifications
- Create SSE stream endpoint at /api/websites/[id]/sessions/stream
- Emit session events in tracking endpoint when sessions are created
- Add useSessionStream hook to connect to SSE and invalidate queries
- Fix LoadingPanel to prevent flicker during background refetches
2025-12-10 16:02:44 +03:00
Mike Cao
23ff20a10b
Merge pull request #3809 from RaenonX/master
...
Allow `browser` / `os` / `device` override in `payload` & return `cache` from `/api/batch`
2025-12-03 00:01:30 -08:00
RaenonX
805bc57bbb
Added browser / os / device override in payload
2025-12-01 04:06:17 +08:00
Mike Cao
fa8d8055df
Reformatted files with biome.
2025-11-22 22:42:42 -08:00
Maxime-J
14f3db550b
Use raw query with on conflict in createSession
2025-11-11 10:32:31 +01:00
Mike Cao
dfe969cabe
Fixed pixels/links collect.
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
2025-10-30 12:53:12 -07:00
Mike Cao
767b373484
Fixed issue with read replica initialization.
Create docker images (cloud) / Build, push, and deploy (push) Has been cancelled
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled
2025-10-06 14:49:36 -07:00
Mike Cao
b9fbbc6453
Split queries into prisma and sql.
Create docker images / Build, push, and deploy (push) Waiting to run
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
2025-09-29 16:55:07 -07:00
Mike Cao
1d7759408f
Fixed build.
2025-09-29 15:13:01 -07:00
Francis Cao
8083482ba8
fix response error return type
2025-09-15 10:18:28 -07:00
Mike Cao
303947fe9b
Fixed uuid references in schemas.
Node.js CI / build (postgresql, 18.18) (push) Waiting to run
2025-09-08 15:28:01 -07:00
Mike Cao
56af91950a
Updated components build.
2025-09-01 15:59:06 -07:00
Mike Cao
789b8b36d8
Link route.
2025-08-18 22:30:22 -07:00
Mike Cao
0ac8bd41b6
Pixel route.
2025-08-18 15:49:10 -07:00
Mike Cao
8abb470234
Merge branch 'dev' into jajaja
2025-06-18 21:43:58 -07:00
Mike Cao
acc323dbc9
Merge pull request #3469 from KrakenWagen/create_session_slow
...
improv: Improved performance of send
2025-06-18 14:29:03 -07:00
Felix Bernal
3a119acd10
improv: Improved performance of send due to slow session creation retrieving session every time.
2025-06-09 14:42:16 +02:00
Mike Cao
0027502707
Merge branch 'dev' into jajaja
...
# Conflicts:
# src/lib/detect.ts
# src/queries/sql/reports/getRevenue.ts
2025-06-08 22:26:26 -07:00
Eritque arcus
33110a44ec
fix: fix remove trailing slash regex
2025-05-22 00:24:48 -05:00
Eritque arcus
8d483d9283
fix: hash is not included in record
2025-05-22 00:19:50 -05:00
Mike Cao
3f1ecf4c1b
Fixed identify. Closes #3409
2025-05-09 16:54:49 -07:00
Francis Cao
f522db44f9
add distinct ID to session info, add logic for /undefined
2025-04-29 15:26:08 -07:00
Francis Cao
de54290af6
add distinct id to saves and fix schema mapping
2025-04-29 09:31:46 -07:00
Mike Cao
d44be466d8
Changed session id generation.
2025-04-25 21:48:59 -07:00
Mike Cao
ffa8d8dd88
Merge remote-tracking branch 'origin/dev' into dev
2025-04-25 03:20:00 -07:00
Mike Cao
e8a933f80e
Updated id logic.
2025-04-25 03:19:37 -07:00
Francis Cao
f659450f99
Merge branch 'dev' of https://github.com/umami-software/umami into dev
2025-04-24 22:42:44 -07:00
Francis Cao
12b8ac4272
app and db schema - region rename, hostname move
2025-04-24 22:42:33 -07:00
Mike Cao
0fd2d09dba
Merge pull request #3334 from perso182/props-in-session-definition
...
Use the props passed to identify to determine sessions
2025-04-24 19:22:24 -07:00
Francis Cao
7ffb3f7b52
update send and saveEvent with utm/clickIds
2025-04-13 21:45:26 -07:00
perso182
37ae0374d8
Added id as a parameter to identify and include it in the payload. Removed the usage of localstorage
2025-04-01 11:24:06 +02:00
Oleh Astappiev
eafd08b4ee
fix: move isbot check after body parsing
2025-03-31 22:56:52 +02:00
perso182
2c80aa0b24
Use props passed to identify to define session
2025-03-28 11:02:56 +01:00
Mike Cao
833de1a1af
Added decoding to URL elements.
2025-03-07 18:42:15 -08:00
Mike Cao
925c756215
Updated salt methods.
2025-03-01 16:29:35 -08:00
Mike Cao
f3ad9a3146
Merge branch 'dev' into allowCreatedDate
2025-03-01 15:21:06 -08:00
Mike Cao
65f18d12ab
Added timestamp property to payload.
2025-03-01 14:40:37 -08:00
David Ventura
30b28793cf
Allow populating event's createdAt on the send endpoint
2025-03-01 12:04:16 +01:00
Mike Cao
a8835f385e
Refactored batch route.
2025-02-28 16:58:57 -08:00
Mike Cao
0aad3d8e05
Lookup location for payload IPs. Removed hostname from session id.
2025-02-21 18:11:52 -08:00
Mike Cao
22a910e818
Added validation for hostname.
2025-02-11 20:36:31 -08:00
Mike Cao
a068ec5910
Referrer should be optional.
2025-02-10 22:49:49 -08:00
Mike Cao
cb660d7dd7
Fixed validation.
2025-02-10 22:34:16 -08:00
Mike Cao
e2523d2604
Check for valid urls.
2025-02-10 21:52:30 -08:00
Mike Cao
6466cef269
Return server error.
2025-02-10 21:14:58 -08:00
Mike Cao
39e7ceac06
Ignore session check for clickhouse.
2025-02-10 20:07:12 -08:00
Mike Cao
16a2abaf21
Don't remove www from hostname.
2025-02-10 18:21:30 -08:00
Mike Cao
21adbc29d4
Added hostname back to tracker.
2025-02-10 17:43:52 -08:00
Mike Cao
d124b429b6
Convert send route to pages api.
2025-02-10 14:34:55 -08:00