working on Web Socket commands

need to finish function Web Socket commands