# 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

None

## See Also

- lua-enet
- enet.host
- enet.host:flush
- enet.host:service
- enet.peer

##

Category:

- Functions