setting up client server websockets