Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Client

Hierarchy

  • Client

Implements

Index

Constructors

constructor

  • new Client(url: string): Client
  • @param {external:String} url : Web socket address @see lock

    Parameters

    • url: string

    Returns Client

Properties

Private _flex

_flex: FlexBuffers

Private _nodes

_nodes: Map<string, Node>

Private _requests

_requests: Map<number, Request>

Private _socket

_socket: WebSocket

onNodesChanged

onNodesChanged: function = undefined

Type declaration

    • (nodes: Node[]): void
    • Parameters

      Returns void

Accessors

nodes

  • get nodes(): Node[]

Methods

Private _create_node_id

  • _create_node_id(builder: Builder, id: NodeId): number

_emit_events

Private _gen_request_id

  • _gen_request_id(): number

Private _get_request

  • _get_request(id: number): Request

_group_from_id

Private _id

_lock_node

  • _lock_node(id: NodeId): Promise<any>

Private _nodes_changed_as_node_list

_nodes_from_id

Private _onmessage

  • _onmessage(event: MessageEvent): void
  • Parameters

    • event: MessageEvent

    Returns void

Private _onopen

  • _onopen(): void

Private _prepare_request

  • _prepare_request(req_id: number): Promise<any>
  • Parameters

    • req_id: number

    Returns Promise<any>

_rename_node

  • _rename_node(id: NodeId, name: string): Promise<any>

_request_aseba_vm_description

  • _request_aseba_vm_description(id: NodeId): Promise<any>

_send_program

Private _serialize_event_description

  • _serialize_event_description(builder: Builder, name: string, fixed_size: number): number
  • Parameters

    • builder: Builder
    • name: string
    • fixed_size: number

    Returns number

Private _serialize_events_descriptions

  • _serialize_events_descriptions(builder: Builder, events: EventDescription[]): number

Private _serialize_variable

  • _serialize_variable(builder: Builder, name: string, value: any): number
  • Parameters

    • builder: Builder
    • name: string
    • value: any

    Returns number

Private _serialize_variables

  • _serialize_variables(builder: Builder, variables: Variables): number

_set_events_descriptions

_set_variables

_set_vm_execution_state

_unlock_node

  • _unlock_node(id: NodeId): Promise<any>

Private _unserialize_aseba_vm_description

_watch

  • _watch(id: NodeId, monitoring_flags: number): Promise<any>

Private _wrap_message_and_send

  • _wrap_message_and_send(builder: Builder, offset: flatbuffers.Offset, type: number): void
  • Parameters

    • builder: Builder
    • offset: flatbuffers.Offset
    • type: number

    Returns void

Generated using TypeDoc