Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

disconnect

NicholasScott1337 edited this page Jul 18, 2015 · 2 revisions

Net:disconnect()


Description
Call-Only
Disconnects from a server, if server it stops listening on a port
Parameters

Nil

Returns

Nil

Formats

Nil

Examples

Disconnects from the server

function button.disconnect()
   Net:disconnect()
   AmIConnected = false
end

Stops listening on port, this will cause clients to timeout

function event.error()
   Net:disconnect()
   print( "Uh Oh" )
end