Instead of always skipping structured messages of an unknonw type with a generic log message, the websocket client will provide them to the configured handler in the Unknown field of the IncomingMessage type.
Existing message handlers already defensively handle unexpected message types by explicitly checking for msg.WebhookEvent or msg.RequestLogEvent.
Reviewers
r? cc @stripe/developer-products
Summary
Instead of always skipping structured messages of an unknonw type with a generic log message, the websocket client will provide them to the configured handler in the Unknown field of the IncomingMessage type.
Existing message handlers already defensively handle unexpected message types by explicitly checking for msg.WebhookEvent or msg.RequestLogEvent.