Skip to content

Commit

Permalink
readme: asgi and quart example
Browse files Browse the repository at this point in the history
  • Loading branch information
mm0d committed Jun 30, 2021
1 parent 331f6f6 commit 3d0f4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ application = Quart(__name__)

# Install the Sonora grpcASGI middleware so we can handle requests to gRPC's paths.

application = grpcASGI(application)
application.asgi_app = grpcASGI(application.asgi_app)

# Attach your gRPC server implementation.

helloworld_pb2_grpc.add_GreeterServicer_to_server(Greeter(), application)
helloworld_pb2_grpc.add_GreeterServicer_to_server(Greeter(), application.asgi_app)
```

And now you have a combined HTTP/1.1 Quart + gRPC application all under a single port.
Expand Down

0 comments on commit 3d0f4df

Please sign in to comment.