feat(chat): add websocket

This commit is contained in:
mso7nueh
2024-06-24 20:03:54 +03:00
parent eaa9247927
commit 05ccfd289c
17 changed files with 911 additions and 195 deletions

View File

@@ -6,7 +6,11 @@ part 'websocket_info_model.g.dart';
@freezed
class WebsocketInfoModel with _$WebsocketInfoModel {
const factory WebsocketInfoModel() = _WebsocketInfoModel;
const factory WebsocketInfoModel({
required String key,
required String host,
required String port,
}) = _WebsocketInfoModel;
factory WebsocketInfoModel.fromJson(Map<String, Object?> json) => _$WebsocketInfoModelFromJson(json);
}