io to socket