json-server
json-server copied to clipboard
added Server Side Events
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