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

pub fn authenticate(token: &Token) -> 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.