ServerSentEvent
An extension for MIT App Inventor 2.Idea by TIMAI2, supports 'dataChanged' events when using Firebase REST API.
Code by Kumaraswamy SG.
Specifications
Package: uk.co.metricrat.serversentevent
Size: 8.96 KB
Version: 1.0
Minimum API Level: 14
Released: 2026-07-09T23:00:00Z
Updated: 2026-07-09T23:00:00Z
Built using: FAST v5.0.0-premium
Blocks:
Methods:
1. SSEConnect
Opens a streaming connection to the given SSE URL and starts listening for events.
2. SSEDisconnect
Closes the SSE connection and stops listening.
Events:
1. SSEGotData
Fired for each event received. eventType is the SSE event name (e.g. put, patch, keep-alive); data is the payload.
2. SSEConnected
Fired once the stream is successfully opened.
3. SSEErrorOccurred
Fired when the connection fails or is interrupted.
(all method and event names are suffixed with SSE so that the correct descriptions come through)
Extension
More information and usage example:
Data Changed Events In Firebase with Web component Guide
Enjoy
, and all feedback and comments welcome.
.
.
Available for use in any MIT AppInventor projects or competitions
#####################################################################
This work by Kumaraswamy & TIMAI2 is licensed under a
Creative Commons Attribution-ShareAlike 4.0 Unported License with attribution.
Please use name = Kumaraswamy & TIMAI2 and link to this source page when giving credit.
#####################################################################

