Implemented web socket event injection.