connectToHost method

Future<void> connectToHost(
  1. String hostId
)

Connect to a host through the relay.

Implementation

Future<void> connectToHost(String hostId) async {
  _socket?.add(jsonEncode({'type': 'connect', 'targetHostId': hostId}));
}