Pusher for realtime updates

Hi

Can I use Pusher services to make the events update in realtime?

Thanks

Hi @victor7,
Yes, you can do this. In order to update the event.text , your pusher event should look like in this snippet( my-event ):
http://snippet.dhtmlx.com/2705611a6
Here is a little video which shows, how the pusher works with this snippet:
https://recordit.co/YNARm9zwSJ
Main points of this solution are:

  1. In the data from the pusher, you should send the event id , to find the event you want to update.
  2. After passing new text to the event , you should call scheduler.updateEvent(id); method to update and rerender the event with new information.
  3. The passed data format in this snippet was:
    {
    “id”: “2”,
    “message”: “It will be the event text”
    }
    Important: don’t forget to use your own pusher credentials:

PUSHER_APP_ID ; PUSHER_APP_KEY; PUSHER_APP_SECRET;

API:
https://docs.dhtmlx.com/scheduler/api__scheduler_updateevent.html