scala instant messenger with sockets