added websockets functionality: