add support to Builder to provide an optional SocketOptions or PollingOptions instance