Question: gRPC client call

30 views
Skip to first unread message

Mai Reaksa

unread,
Jul 15, 2025, 9:07:14 AM7/15/25
to grpc.io
Dear, gRPC team. I have one question, i build gRPC sever with dart and client dart also, when i went call from gRPC server without proto file i can not sent request and get data i just connect sever. How can i don call server because my client using mobile flutter. 
This my code client:
 import 'package:grpc/grpc.dart';
Future<void> main(List<String> args) async {
final channel = ClientChannel(
'localhost',
port: 50051,
options: const ChannelOptions(credentials: ChannelCredentials.insecure()),
);
try {
channel.getConnection();
print("Connectino Done");
} catch (e) {
print("object");
}
}

Reply all
Reply to author
Forward
0 new messages