web sockets working with samples