MigratoryDataListener

The implementation of this interface will handle the messages received from the server for the subscribed subjects as well as various status notifications. More…

Public Functions

Name
void on_message(MigratoryDataMessage message)
This method handles the real-time messages received from a MigratoryData server for the subscribed subjects.
void on_status(String status, String info)
This method handles the status notifications.

Detailed Description

class MigratoryDataListener;

The implementation of this interface will handle the messages received from the server for the subscribed subjects as well as various status notifications.

Use the API method MigratoryDataClient.set_listener() to register your listener implementation.

Public Functions Documentation

function on_message

void on_message(
    MigratoryDataMessage message
)

This method handles the real-time messages received from a MigratoryData server for the subscribed subjects.

Parameters:

function on_status

void on_status(
    String status,
    String info
)

This method handles the status notifications.

Parameters:

  • status The type of the status notification (see the possible values above).
  • info The detail information of the status notification.

The possible values of the status parameter are: