Skip to content

Feature request: Parser models for API GW Websockets Events #5543

Closed
@ran-isenberg

Description

@ran-isenberg

Use case

I can implement it myself, it's been a while :)
I'd like to present/demo this feature in an upcoming blog post

3 times of events:
connect: https://gist.github.com/ran-isenberg/7c73a1db17a5d47ac5da5e19f0a3529f

message over a route : https://gist.github.com/ran-isenberg/35ceae2179ed9c26e459450825561369

disconnect: https://gist.github.com/ran-isenberg/2bffedaacc4423d7d23901b803cc280a

Solution/User Experience

Add Parser models and envelope to parse the event.
Same experience as API GW usage.

Alternative solutions

write the model by myself and use pure pydantic like a savage.

Acknowledgment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions