Add a demo to mock the socket api