Add support for subscriptions and sending events.