add web-sockets functionality to mobile example