pingMessageHandler method

void pingMessageHandler()

Sends a ping message to the WebSocket server

Implementation

void pingMessageHandler() {
  pingTimer = Timer.periodic(Duration(seconds: pingMessageInterval), (timer) {
    final pingParams = <String, String>{
      'interval': '5000',
    };
    idPing = sendJson(JsonConstants.pingMethod, pingParams);
  });
}