working on websockets but not yet working