What it does
SocketListenerConnection reads from a Multiplayer object without changing it. It takes listenerID (an integer), and answers an integer. listenerID is the id of a Listener object, obtained elsewhere in the Multiplayer family.
Syntax
SocketListenerConnection(listenerID integer) → integerParameters
| Name | Type |
|---|---|
| listenerID | integer |
Every form returns
integer
Example · generated
listener = CreateSocketListener("value", 1)DO Print(SocketListenerConnection(listener)) Sync()LOOPCreateSocketListener is there to give the call something to act on; SocketListenerConnection is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.