Update README.
This commit is contained in:
@@ -37,7 +37,9 @@ static pointer from_url(std::string url);
|
|||||||
static pointer create_dummy();
|
static pointer create_dummy();
|
||||||
|
|
||||||
// Function to perform actual network send()/recv() I/O:
|
// Function to perform actual network send()/recv() I/O:
|
||||||
void poll();
|
// (note: if all you need is to recv()/dispatch() messages, then timeout can be
|
||||||
|
// used to block until a message arrives)
|
||||||
|
void poll(int timeout = 0);
|
||||||
|
|
||||||
// Receive a message, and pass it to callable(). Really, this just looks at
|
// Receive a message, and pass it to callable(). Really, this just looks at
|
||||||
// a buffer (filled up by poll()) and decodes any messages in the buffer.
|
// a buffer (filled up by poll()) and decodes any messages in the buffer.
|
||||||
@@ -51,8 +53,8 @@ void dispatch(Callable callable);
|
|||||||
// later):
|
// later):
|
||||||
void send(std::string message);
|
void send(std::string message);
|
||||||
|
|
||||||
// Close the WebSocket (N.B. - this is an abrupt/rude message at the moment, as
|
// Close the WebSocket (send a CLOSE message over WebSocket, then close() the
|
||||||
// it simply closes the socket without sending an official CLOSE message.)
|
// actual socket when the send buffer becomes empty):
|
||||||
void close();
|
void close();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user