first approach to websockets