Harris
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Harris on 4/28/2024 in #questions
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?
2 replies
TTCTheo's Typesafe Cult
•Created by Harris on 4/10/2024 in #questions
exported type changes on import (z.zodInfer)
2 replies
CDCloudflare Developers
•Created by Harris on 4/5/2024 in #pages-help
Vite build works locally, but fails on cloudflare
5 replies
TTCTheo's Typesafe Cult
•Created by Harris on 12/9/2023 in #questions
Gradient background blur
Does anyone know how to create a background blur on a linear gradient that decreases the intensity of the blur from full strength to 0 with CSS?
2 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/29/2023 in #questions
Google OAuth + Vercel Preview Deployments?
2 replies