support for callback in send ws (web sockets)