add some functional to web sockets