Function: useLocationStream()¶
useLocationStream(
geohash):object
Defined in: hooks/use-location-stream.ts:17
Hook for subscribing to real-time fire risk alerts via Server-Sent Events (SSE).
Establishes a persistent connection to receive streaming risk data for a monitored zone. Connection requires authentication and closes after first message.
Parameters¶
| Parameter | Type |
|---|---|
geohash |
string | null |
Returns¶
object
error¶
error:
Error|undefined
riskData¶
riskData:
StreamRiskData|null|undefined=data