modal
    Preparing search index...

    Class Tunnel

    A port forwarded from within a running Modal Sandbox.

    Index

    Properties

    host: string
    port: number
    unencryptedHost?: string
    unencryptedPort?: number

    Accessors

    • get tcpSocket(): [string, number]

      Get the public TCP socket as a [host, port] tuple.

      Returns [string, number]

    • get tlsSocket(): [string, number]

      Get the public TLS socket as a [host, port] tuple.

      Returns [string, number]

    • get url(): string

      Get the public HTTPS URL of the forwarded port.

      Returns string