json-server icon indicating copy to clipboard operation
json-server copied to clipboard

added Server Side Events

Open Alex-Jongman opened this issue 1 year ago • 0 comments

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

Alex-Jongman avatar Oct 13 '24 14:10 Alex-Jongman