Scripting/Squirrel/Functions/Socket.Disconnect: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function will disconnect the socket from a client. This will only work when you're listening as a server using Socket.Start....")
 
No edit summary
 
Line 15: Line 15:


{{Scripting/Squirrel/Functions/Sockets}}
{{Scripting/Squirrel/Functions/Sockets}}
[[Category:Scripting/Squirrel/Functions/Sockets]]

Latest revision as of 21:55, 30 January 2017

This function will disconnect the socket from a client. This will only work when you're listening as a server using Socket.Start.

Syntax

Socket.Disconnect( clientId )

Arguments

  • int clientId - The ID of the client you want to disconnect from.

Example

Please refer to the Socket Example for a advanced usage of all socket functions.

Related Functions