Skip to main content

gRPC — Your Handler Is a Class

· 5 min read
Roberto Pintos López
InversifyJS maintainer

You wrote the contract in a .proto file. Then the implementation turned into a function handed to server.addService(), closing over whatever it needed because a function has nowhere to put a constructor.

That function can be a class now. The container builds it. The adapter puts it on the wire.

Server-Sent Events - Real-Time Updates Made Simple

· 2 min read
Roberto Pintos López
InversifyJS maintainer

You know what's funny? We've been building real-time features with WebSockets for years, pulling in entire libraries, managing bidirectional connections, and writing custom reconnection logic. Meanwhile, there's been a simpler solution hiding in plain sight: Server-Sent Events (SSE).

And now it's ridiculously easy to use in InversifyJS.