Socket connection, login, send/receive messages