TypeScript: Extending socket.io Socket Interface with custom properties like user_id not recognized
I’m currently implementing authentication with socket.io in TypeScript for my project. When a user connects, I need to store their user_id on socket.user_id after verifying their JWT token in a middleware function.