šŸ”„ [FREE] Server Sent Event for Firebase REST API

ServerSentEvent

An extension for MIT App Inventor 2.
Idea by TIMAI2, supports 'dataChanged' events when using Firebase REST API.
Code by Kumaraswamy SG.

:memo: Specifications


:package: Package: uk.co.metricrat.serversentevent
:floppy_disk: Size: 8.96 KB
:gear: Version: 1.0
:mobile_phone: Minimum API Level: 14
:date: Released: 2026-07-09T23:00:00Z
:date: Updated: 2026-07-09T23:00:00Z
:laptop: 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

ServerSentEvent

More information and usage example:

Data Changed Events In Firebase with Web component Guide

Enjoy :smiley: , 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.
#####################################################################

1 Like

(added to FAQ)