syncromatics / syncromatics-track-api

Library to interact with the Syncromatics Track API
https://www.npmjs.com/package/syncromatics-track-api
6 stars 1 forks source link

feat(voip): Support voip heartbeats #56

Closed cuevaskoch closed 5 years ago

cuevaskoch commented 5 years ago

feat(voip): Support voip heartbeats

Added .customer().realTime().voip() heartbeat handler.

BREAKING CHANGE: now subscribes to callStates instead of callRequests

Updated to address changes in Track API.

Before:

api.customer('SYNC') .realTime() .callRequests() .on('update', callRequest => callRequest);

After:

api.customer('SYNC') .realTime() .callStates() .on('update', callState => callState);

Signed-off-by: Jeff Cuevas-Koch jeff@cuevaskoch.com