Customize socket.