Logo Orsak

RemoteClient Type

Calls the members of remote interfaces on a server, at {baseUrl}{prefix}/{interface}/{member}, in one format, sent by one transport: what a proxy, such as one [<GenRemote>] generates, calls.

Constructors

Constructor Description

RemoteClient(baseUrl, prefix, format, transport)

Full Usage: RemoteClient(baseUrl, prefix, format, transport)

Parameters:
Returns: RemoteClient
baseUrl : string
prefix : string
format : IWireFormat
transport : IRemoteTransport
Returns: RemoteClient

Instance members

Instance member Description

this.Member

Full Usage: this.Member

Parameters:
    interfaceName : string - The interface's name, as the server maps it
    memberName : string - The member's name
    argTypes : Type array - The types of the member's arguments, in order
    resultType : Type - The type of the member's result, unit for a task without one

Returns: RemoteMember

A member of a remote interface, with the codecs of its types, which fails if the format can't write one.

interfaceName : string

The interface's name, as the server maps it

memberName : string

The member's name

argTypes : Type array

The types of the member's arguments, in order

resultType : Type

The type of the member's result, unit for a task without one

Returns: RemoteMember

Type something to start searching.