qa the service code examples and change the websockets demo