Fix/socket. Fixed bug with binary socket connection

subj.