sendPong method

void sendPong(
  1. WebSocketChannel webSocketChannel
)

Implementation

void sendPong(WebSocketChannel webSocketChannel) {
  Map msg = {"msg": "pong"};
  logInfo('🚀🚀 sendPong $msg');
  webSocketChannel.sink.add(jsonEncode(msg));
}