sendToUser abstract method

void sendToUser(
  1. dynamic userId,
  2. String event,
  3. dynamic data
)

Send a message to a specific user (by user ID). The adapter is responsible for mapping user ID to client ID(s).

Implementation

void sendToUser(dynamic userId, String event, dynamic data);