## Default events

#### Server events

- `connection`

> `connection` occurs when an connection has been successfully established
> Takes 1 parameter ($socket)

### Client events

- `banned`

> `banned` occurs when the server issues a `_Io_Ban` on an ip or a socket. The `banned` event will occur upon reconnecting after a `disconnect` event.
> Takes 5 parametsrs `($socket, $created_at, $expires_at, $sReason, $sIssuedBy)`

#### Server and Client events

- `disconnect`

> If server: `disconnect` occurs when a user disconnects. If client: `disconnect` occurs when the conection to the server is lost.
> Takes 1 parameter ($socket)

- `flood`

> `flood` occurs when exceeding the `$__g_io_nMaxPacketSize`. `$__g_io_nMaxPacketSize` is set by `_Io_SetMaxRecvPackageSize` which defaults to whatever `_Io_setRecvPackageSize` is set to.
> Takes 1 parameter ($socket)