skip to Main Content

I am using grpc to communicate with the server. I create connection using

let channel = ClientConnection
                  .secure (group: MultiThreadedEventLoopGroup (numberOfThreads: 10))
                  .connect (host: "testHost.com", port: 443) 

But with the new version, the connection was moved to https://testHost.com/api,
how do I add the path = api to connect to the server?

2

Answers


  1. I think you can’t route gRPC services to a non-root path.

    You may need to ask the folks that made the endpoint change, how you can access /api but one solution may be to have them create e.g. api.testhost.com for gRPC clients.

    Login or Signup to reply.
  2. This path will be present in the protobuffs that are converted to swift lang

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search