add bytes transfer in ws