瀏覽代碼

Add host:destroy() to documentation

Kyle McLamb 10 年之前
父節點
當前提交
dc0a7a5f14
共有 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.
 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])`
 
 Wait for events, send and receive any ready packets. `timeout` is the max