pub trait WebSocketAuth: Send + Sync {
// Required methods
fn create_auth_message(&self) -> WebSocketResult<Option<OwnedValue>>;
fn get_auth_headers(&self) -> WebSocketResult<FxHashMap<String, String>>;
fn handle_auth_response(
&mut self,
response: &OwnedValue,
) -> WebSocketResult<bool>;
}Expand description
WebSocket authentication provider
Required Methods§
Sourcefn create_auth_message(&self) -> WebSocketResult<Option<OwnedValue>>
fn create_auth_message(&self) -> WebSocketResult<Option<OwnedValue>>
Create authentication message
Sourcefn get_auth_headers(&self) -> WebSocketResult<FxHashMap<String, String>>
fn get_auth_headers(&self) -> WebSocketResult<FxHashMap<String, String>>
Get authentication headers
Sourcefn handle_auth_response(
&mut self,
response: &OwnedValue,
) -> WebSocketResult<bool>
fn handle_auth_response( &mut self, response: &OwnedValue, ) -> WebSocketResult<bool>
Handle authentication response