Add streaming operator to socket