grpc-swift icon indicating copy to clipboard operation
grpc-swift copied to clipboard

Add Bonjour Support

Open justinrschmidt opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe it.

I am working on an iOS app where one device will act as the server and other devices on the same local network will connect to the server device. I would like to use Bonjour (zeroconf) for the clients to discover the server so that the app's users don't need to mess around with IP addresses. I would like to use gRPC to send messages between the server and client devices. There is a function for SwiftNIO to bind to an NWEndpoint, but I was unable to find a similar function for gRPC Swift.

Describe the solution you'd like

On the server side, I would like gRPC Swift to be able to bind to an NWListener. On the client side, it would be able to use an NWEndpoint to establish a connection to the server.

justinrschmidt avatar Jun 06 '24 23:06 justinrschmidt

Thanks for opening this issue, we can add this, it's a completely reasonable feature to add. I'll try to find some time to get this done soon.

glbrntt avatar Jun 07 '24 10:06 glbrntt