Add support for sockets.