Options
All
  • Public
  • Public/Protected
  • All
Menu

Module vm/handshake

Index

References

Enumerations

Functions

References

Renames and re-exports negotiateConnection

Functions

  • negotiateConnection(socket: Duplex, sessionKey: Uint8Array, rcinfo: RemoteConsoleInfo, options: { deviceType: DeviceType; targetIsDevice?: boolean }): Promise<number[]>
  • Negotiates a virtual media connection.

    Returns protocol version if correct (afterwards you can start the receiver) or throws error.

    Warning: Apparently, sessionKey and rcInfo must be taken from an already-running remote console session, otherwise AUTHFAIL.

    Parameters

    • socket: Duplex

      recently-opened socket (or duplex stream)

    • sessionKey: Uint8Array
    • rcinfo: RemoteConsoleInfo
    • options: { deviceType: DeviceType; targetIsDevice?: boolean }
      • deviceType: DeviceType
      • Optional targetIsDevice?: boolean

    Returns Promise<number[]>

    [major, minor] version tuple

Generated using TypeDoc