Adding websocket library as a dependency

Run this command in a terminal, in your project's directory:

cargo add websocket

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

websocket = "0.27.1"

The websocket library will be automatically available globally. Read the websocket library documentation.

Back to the crate overview.