changed ws send func spec