typicode / json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)
Other
73.05k stars 7.02k forks source link

added Server Side Events #1614

Open Alex-Jongman opened 1 month ago

Alex-Jongman commented 1 month ago

Implemented Server Side Events at a new /events endpoint (might be nicer to be able to specify the endpoint in the CLI), which allows clients to listen to changes of the JSON instead of using active polling. Clients listening will receive a JSON containing the method and the params that triggered the event. Events will be dispatched on all methods except of the GET's. Closes #1610