Socket module

Socket

constantSource

A socket handle: Winsock's SOCKET here, an s32 file descriptor on Unix. Compare against INVALID_SOCKET, never a number.

Example
s: Socket = INVALID_SOCKET;
assert(s == INVALID_SOCKET);

Doesn't run in the browser (skipped on wasm).

Socket :: SOCKET

See also