test_1
test_1
TtRPC
Created by test_1 on 6/23/2023 in #❓-help
call socket.io events from inside trpc endpoints?
how do i implement notifications when someone likes a post with socket.io? will every user have his own socket.io room and then when someone likes their post that someone joins their room to send websocket? and what if user is offline i dont want any websocket event also how do i have my server broadcast a websocket inside the trpc route itself instead of having the frontend send both a fetch and emitting a socket event? since socket.io is inside a function io.on and its seperate from my trpc endpoints idk how to emit stuff from the endpoints
2 replies
TtRPC
Created by test_1 on 6/20/2023 in #❓-help
whats the difference between context and middleware
and which 1 should I use for express session cookies
2 replies
TtRPC
Created by test_1 on 6/18/2023 in #❓-help
when i deploy frontend trpc fails to compile
6 replies
TtRPC
Created by test_1 on 6/18/2023 in #❓-help
how to rate limit in trpc express/nodejs server (not nextjs)
each prodecure will have different rate limit for IP or sometthing idk maybe whole database will have same limit for now if there is no simple solution
2 replies