You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.
Semaphores aren't based on the CoreCLR anymore; that was left over
from when I was screwing about trying to get things to work.
Now we can decode JSON using the static methods of entity<T> classes,
and in the future typechecking will be put in to ensure valid json is
passed to these types (right now it will throw a json exception, we
should add custom exception types to make errors easier to debug.
TODO from this point onwards:
- Implement REST API methods in api_client.cpp (see #5)
- Remove `disccord_` prefix from client types
- Add entity types for all discord entities
- Implement websocket API (see #6)
- Implement entity cache
- Clean up includes
- Include a test script (?)
- Expand test range (see #2)
- Write documentation (see #7 for more info)
Right now it looks like we are just using going to use the regular web::websockets::client::websocket_client, however; I highly recommend that we use web::websockets::client::websocket_callback_client since it is specifically made for applications that want to maintain a connection host for a long time. If we just use websocket_client, then we will have to make our own event loop for the receive method, which is tricky as well because we may miss messages that way. But instead of receive, websocket_callback_client has a method set_message_handler which does all that work for us, and receives every incoming message, its quite nice.
I was planning on doing something like Discord.Net, which uses an
event-based websocket client.
On 28 Feb 2017 23:05, "Ashton Tito" <notifications@github.com> wrote:
Right now it looks like we are just using going to use the regular
web::websockets::client::websocket_client, however; I highly recommend that
we use web::websockets::client::websocket_callback_client since it is
specifically made for applications that want to maintain a connection host
for a long time. If we just use websocket_client, then we will have to make
our own event loop for the receive method, which is tricky as well because
we may miss messages that way. But instead of *receive*,
websocket_callback_client has a method *set_message_handler* which does all
that work for us, and receives every incoming message, its quite nice.
This issue will be used to track the status of the websocket client.
Flowchart for reference: http://i.imgur.com/Wy5wbGq.png
The text was updated successfully, but these errors were encountered: