Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Closes a socket.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Socket | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
SocketID | The socket ID received by Socket.Connect function. | $sock |
Returns OK or error message.
Disconnect socket:
If [IsEmpty($$sock)]
Else
Set Variable [$r; Value:MBS("Socket.Close"; $$Sock)]
Set Variable [$$Sock; Value:""]
End If
This function is free to use.
Created 18th August 2014, last changed 26th January 2016