You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an Elysia project, I enjoy typesafe message exchange through WebSockets thanks to Typebox.
Given that both client and server agree on the schema, JSON seems like a rather wasteful serialization format. Simply put, why transmit field names over-the-wire when the schema already dictates field names?
This made me wonder: Is there any binary serialization format that plays nicely with Typebox?
Something like a tool that would generate e.g. a FlatBuffer schema from a Typebox type. (Actually took a stab at this, but dates are not supported by FlatBuffer...)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In an Elysia project, I enjoy typesafe message exchange through WebSockets thanks to Typebox.
Given that both client and server agree on the schema, JSON seems like a rather wasteful serialization format. Simply put, why transmit field names over-the-wire when the schema already dictates field names?
This made me wonder: Is there any binary serialization format that plays nicely with Typebox?
Something like a tool that would generate e.g. a FlatBuffer schema from a Typebox type. (Actually took a stab at this, but dates are not supported by FlatBuffer...)
Beta Was this translation helpful? Give feedback.
All reactions