Add events manager and socket for realtime connections