[][src]Function screeps_api::websocket::commands::authenticate

pub fn authenticate(token: &[u8]) -> String

Authenticates with the given token.

After doing this, you'll be able to subscribe and unsubscribe to messages. A "auth success" message will happen as a response which returns either this token or a new one.