IPWorks SSH 2020 JavaScript Edition

Questions / Feedback?

Connections Property

A collection of currently connected clients.

Syntax


 getConnections(): ConnectionMap;



Default Value

Remarks

This property contains a collection of currently connected clients. All of the connections may be managed using this property. Each connection is described by the different fields of the connection type.

This collection is a hashtable type of collection, in which the Connection ID string is used as the key to the desired connection. You may acquire the key for a given connection through the Connected event.

Example (Broadcasting Data)

For i = 0 to Control.ConnectionCount
  Control.DataToSend(Control.ConnectionId(i)) = "Broadcast Data"
Next i

This property is read-only.

Copyright (c) 2023 /n software inc. - All rights reserved.
IPWorks SSH 2020 JavaScript Edition - Version 20.0 [Build 8501]