moved sockets to main file
added websockets stuff to index