Use events to communicate with extensions, Socket.IO to communicate with clients