udpated examples for websockets