implement 2-way messaging on socket, send/receive confirmation