TTC
Theo's Typesafe CultHarris
Has anyone used JSON Patch with an authoritative server state?
Has anyone implemented JSON Patch over WebSocket?
It seems like it is just what I need, but there's a twist:
- I need the server to be authoritative
- but users should be able to initiate some changes optimistically (like adding a message to a chat)
What's the best approach here? Do I need to write some a parser of the JSON patch object to see if it's an authorized operation?
Right now I'm thinking that perhaps the patches are sent only one way (server -> client) and the client sends specific request objects to trigger changes e.g. SendMessageRequest
but perhaps there is a more generalized way where the client can send any patch, and the server just checks to see if it's valid?
21KMembers
View on DiscordWant results from more Discord servers?
More PostsHow would you structure the backend for an application like this?I have a simple app I want to rebuild in T3, and curious what approach would work well, I haven't usPlease help me save our internal app from cookies set at subdomains in our company!Our Nodejs Express application is seeing 400 bad request responses and 413 request header too large Fail to try beta version of Typescript because @t3-oss requirementhello guys, noob question, how to bypass peer dependencies requirement? i want to use typescript 5.5Module not found: Can't resolve './utils/createUtilityFunctions.mjs'