working on websockets