docs.rs failed to build wasm-sockets-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
wasm-sockets-1.0.0
wasm-sockets
wasm-sockets
is a WASM only rust websocket library primarily designed for creating games.
This crate offers 2 (wasm-only) websocket clients.
The first client offered is the EventClient
. This client is event based and gives you the most control.
use console_error_panic_hook;
use console_log;
use ;
use panic;
use ;
The second client offered is the PollingClient
. This client is ideal for games, because it is designed to be used with a loop.
This client is also much simpler than the EventClient
. However, you can access the main EventClient
that it is using
if you want access to lower level control.
use console_error_panic_hook;
use ;
use RefCell;
use panic;
use Rc;
use *;
use ;
// Bind setInterval to make a basic game loop
extern "C"