implemented the API that notify various event with SockJS. #2