IStream.OpenAsync()

DESCRIPTION

Open a stream asynchronously.

DECLARATION

System.Threading.Tasks.Task OpenAsync(UInt32)

PARAMETERS

  • port: The port to use on the remote server, a streamPort is a demultiplexing id.

ERRORS

  • T:Nabto.Edge.Client.NabtoException: Thrown with error code STOPPED if the stream could not be created, e.g. the handshake is stopped/aborted or the connection or client context is stopped.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code NOT_CONNECTED if the connection is not established yet.

RETURNS

The Task that will complete once the stream is opened.