typed-array-buffer-schema
typed-array-buffer-schema copied to clipboard
RangeError: Offset is outside the bounds of the DataView
I have a simple chatMessage model for my app:
const chatMessage = BufferSchema.schema('chatMessage', {
message: {type: string16, length: 200},
});
export const chatMessageModel = new Model(chatMessage);
The first time serialising and deserialising local goes fine. However doing it a second time for some reason caps the DataView at a length of 29 and I get a out of bounds error. This was never there before and I did not change anything to my app. It seems a browser update has broken this somehow but I can't figure it out.
First message:

Second message:

I actually am experiencing a similar problem since few days where simple chat messages are broken. Client to server works, and then when i send the exact same message from server to client, I get offset error