Skip to content

network.Socket

Creates new network socket

Syntax

network.Socket(type:string)

Parameters

type Type of Socket.

Return value

If successful, returns a Socket, otherwise returns an error of what failed.

Note

Type "UDP" is only supported currently.