Checks for any queued events and dispatches one if available. Returns the associated [[enet.event | event]] if something was dispatched, otherwise [[nil]].
== Function ==
=== Synopsis ===
<source lang="lua">
event = host:check_events()
</source>
=== Arguments ===
None.

=== Returns ===
{{param|table|event|An [[enet.event | event]] or nil if no events are available.}}

== See Also ==
* [[parent::lua-enet]]
* [[enet.event]]
* [[enet.host:service]]
== Other Languages ==
{{i18n|enet.host:check_events}}