Regenerate connect/disconnect hooks
This commit is contained in:
parent
32c3eb4919
commit
08560d0c92
|
@ -1,5 +1,39 @@
|
|||
# TeeworldsClient
|
||||
|
||||
### <a name="on_disconnect"></a> #on_disconnect(&block)
|
||||
|
||||
**Parameter: block [Block |[context](../classes/Context.md)|]**
|
||||
|
||||
context.message is nil because there is no message payload.
|
||||
|
||||
**Example:**
|
||||
```ruby
|
||||
client = TeeworldsClient.new
|
||||
|
||||
client.on_disconnect do |context|
|
||||
# TODO: generated documentation
|
||||
end
|
||||
|
||||
client.connect('localhost', 8303, detach: false)
|
||||
```
|
||||
|
||||
### <a name="on_connected"></a> #on_connected(&block)
|
||||
|
||||
**Parameter: block [Block |[context](../classes/Context.md)|]**
|
||||
|
||||
context.message is nil because there is no message payload.
|
||||
|
||||
**Example:**
|
||||
```ruby
|
||||
client = TeeworldsClient.new
|
||||
|
||||
client.on_connected do |context|
|
||||
# TODO: generated documentation
|
||||
end
|
||||
|
||||
client.connect('localhost', 8303, detach: false)
|
||||
```
|
||||
|
||||
### <a name="on_rcon_line"></a> #on_rcon_line(&block)
|
||||
|
||||
**Parameter: block [Block |[context](../classes/Context.md)|]**
|
||||
|
@ -168,40 +202,6 @@ end
|
|||
client.connect('localhost', 8303, detach: false)
|
||||
```
|
||||
|
||||
### <a name="on_disconnect"></a> #on_disconnect(&block)
|
||||
|
||||
**Parameter: block [Block |[context](../classes/Context.md)|]**
|
||||
|
||||
TODO: generated documentation
|
||||
|
||||
**Example:**
|
||||
```ruby
|
||||
client = TeeworldsClient.new
|
||||
|
||||
client.on_disconnect do |context|
|
||||
# TODO: generated documentation
|
||||
end
|
||||
|
||||
client.connect('localhost', 8303, detach: false)
|
||||
```
|
||||
|
||||
### <a name="on_connected"></a> #on_connected(&block)
|
||||
|
||||
**Parameter: block [Block |[context](../classes/Context.md)|]**
|
||||
|
||||
TODO: generated documentation
|
||||
|
||||
**Example:**
|
||||
```ruby
|
||||
client = TeeworldsClient.new
|
||||
|
||||
client.on_connected do |context|
|
||||
# TODO: generated documentation
|
||||
end
|
||||
|
||||
client.connect('localhost', 8303, detach: false)
|
||||
```
|
||||
|
||||
### <a name="on_client_info"></a> #on_client_info(&block)
|
||||
|
||||
**Parameter: block [Block |[context](../classes/Context.md)|]**
|
||||
|
|
Loading…
Reference in a new issue