setToken method
Update the token for this socket
@throws Exception
if the token is already set
Implementation
void setToken(String token) {
if (this.token != null) {
throw Exception("🔴 Token Already Set");
}
this.token = token;
emit("token-updated", token);
}