client-side part of SoBa socket-based communication