config method
Implementation
@override
Future<void> config({required ConnectMode mode}) async {
if (mode is! ConnectModeWebSocket) {
throw PlatformException(
code: 'not support mode',
message: 'not support mode ${mode.runtimeType.toString()}',
);
}
_host = mode.host;
_port = mode.port;
_path = mode.part;
_wss = mode.wss;
}