Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cubiclesoft committed Oct 12, 2018
1 parent bde8fca commit 0b7e145
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ Access: public

Parameters:

* $timeout - A boolean of false or an integer containing the number of seconds to wait for an event to trigger such as a write operation to complete (default is false).
* $timeout - A boolean of false or an integer containing the number of seconds to wait for an event to trigger such as a write operation to complete (Default is false).

Returns: An standard array of information.
Returns: A standard array of information.

This function waits until an event occurs such as data arriving, the write end clearing so more data can be sent, or the "nothing has happened for a while, so send a keepalive" timeout. Then WebSocket::ProcessQueuesAndTimeoutState() is called. This function is the core of the WebSocket class and should be called frequently (e.g. a while loop).

Expand All @@ -304,7 +304,7 @@ Parameters:
* $read - A boolean that indicates that data is available to be read.
* $write - A boolean that indicates that the connection is ready for more data to be written to it.

Returns: An standard array of information.
Returns: A standard array of information.

This mostly internal function handles post-Wait() queue processing and a keepalive, if necessary, is queued to be sent. It is declared public so that WebSocketServer can call it to handle the queues and timeout state for an individual client.

Expand Down

0 comments on commit 0b7e145

Please sign in to comment.