newSocket

From GTA Connected
Revision as of 15:28, 24 August 2019 by Mex (talk | contribs) (Mex moved page NewSocket to newSocket)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Server Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.0.0

Socket newSocket(function handler)

The newSocket function is used to creates a socket, and assigns the incoming data handler function.

Parameters

1) function handler The scripting function to call with data read.

Return

Socket A socket handle.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Server Related

newSocket

socket.close
socket.connect
socket.delete
socket.send
socket.sendClient
socket.start
socket.stop