added websockets code snippet