Initial setup of  web sockets