Просмотр исходного кода

Merge pull request #16 from Alloyed/patch-1

Add host:destroy() to documentation
leaf 10 лет назад
Родитель
Сommit
97d91e8c43
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      docs/index.md

+ 4 - 0
docs/index.md

@@ -137,6 +137,10 @@ the channel count on the server. Defaults to `1`.
 `data` is an integer value that can be associated with the connect event.
 `data` is an integer value that can be associated with the connect event.
 Defaults to `0`.
 Defaults to `0`.
 
 
+### `host:destroy()`
+
+Destroys host, freeing up the port it's bound to. Automatically called when `host` is garbage collected.
+
 ### `host:service([timeout])`
 ### `host:service([timeout])`
 
 
 Wait for events, send and receive any ready packets. `timeout` is the max
 Wait for events, send and receive any ready packets. `timeout` is the max