ChatService constructor

ChatService()

Implementation

ChatService(){
  final channel = ClientChannel(connectionServer ,
    port: portServer,
    options: const ChannelOptions(
      credentials: ChannelCredentials.insecure(),
      idleTimeout: null, // 🔓 No idle timeout
    )
  );
  client = ChatServiceClient(channel);

}