Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > getPeerConnectionList() |  |

getPeerConnectionList()

Syntax

    gMultiuserInstance.getPeerConnectionList()

Description

Multiuser Server Lingo function; returns a list of all the peer users connected to the host movie. An outgoing connection made with the `connectToNetServer()` command is not included in this list; only peer connections accepted with the `waitForNetConnection()` command are included.

The return value is a list containing the user IDs or an empty list, in the case of an error or no connections.

Example

This statement obtains the list of users connected to the host movie:

    userList = gMultiuserInstance.getPeerConnectionList()

See also

`connectToNetServer()`, `waitForNetConnection()`