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
{{ message }}
Repository navigation
parseDate: false is not respected for WebSocket messages #257
When creating a treaty client with parseDate: false, HTTP responses correctly leave ISO date strings as strings. However, WebSocket messages still auto-convert ISO date strings to Date objects — the parseDate option is not forwarded to the WS message parser.
typeof wsData.time should be "string" when parseDate: false is set.
Actual behavior
wsData.time is a Date object — the parseDate: false config is ignored for WebSocket messages.
Root cause
Looking at the compiled source, the WS message deserializer (S function in chunk-I5KHAGLL.mjs) receives a config parameter r, and checks r?.parseDate === false. However the treaty client does not pass its config through when calling this function for WS messages.
Activity