W3cubDocs

/LÖVE

enet.peer:disconnect

Requests a disconnection from the peer. The message is sent on the next host:service() or host:flush().

Function

Synopsis

peer:disconnect(data)

Arguments

number data
An optional integer value to be associated with the disconnect.

Returns

Nothing.

See Also

© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/enet.peer:disconnect