[java/ws] RemoteWSChan: now compliant with Javascript version