File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -153,9 +153,8 @@ class EventStreamPostRequestBody(BaseModel):
153153class EventStreamGetVersionResponse (BaseModel ):
154154 """/event-stream/version/ GET response."""
155155
156- # Category of the service (enumeration).
157- # We're a 'WEBSOCKET'
158- category : str
156+ # Protocol of the service (enumeration).
157+ protocol : str
159158 # Our name (ours is 'Python FastAPI')
160159 name : str
161160 # Our version number
@@ -503,9 +502,9 @@ async def _consume(
503502
504503@app_internal .get ("/event-stream/version/" , status_code = status .HTTP_200_OK )
505504def get_es_version () -> EventStreamGetVersionResponse :
506- """Returns our version information."""
505+ """Returns our version information. We're a 'WEBSOCKET'. """
507506 return EventStreamGetVersionResponse (
508- category = "WEBSOCKET" ,
507+ protocol = "WEBSOCKET" ,
509508 name = "Python FastAPI" ,
510509 version = _VERSION ,
511510 )
You can’t perform that action at this time.
0 commit comments