add demo of websocket and server send event