pub struct WsRawConnect {
pub full_url: String,
pub max_message_size: usize,
pub allow_plain_text: bool,
pub danger_disable_certificate_check: bool,
pub headers: Vec<(String, String)>,
pub auth_material: Option<Vec<u8>>,
pub alter_token_cb: Option<AlterTokenCb>,
}Expand description
Connection info for creating a raw websocket connection.
Fields§
§full_url: StringThe full url including the pubkey path parameter.
max_message_size: usizeThe maximum message size. If a message is larger than this the connection will be closed.
allow_plain_text: boolSetting this to true allows ws:// scheme.
danger_disable_certificate_check: boolSetting this to true disables certificate verification on wss://
scheme. WARNING: this is a dangerous configuration and should not
be used outside of testing (i.e. self-signed tls certificates).
headers: Vec<(String, String)>Set any custom http headers to send with the websocket connect.
auth_material: Option<Vec<u8>>If you must pass authentication material to the sbd server, specify it here.
alter_token_cb: Option<AlterTokenCb>This is mostly a test api, but since we need to use it outside this crate, it is available for anyone using the “raw_client” feature. Allows altering the token post-receive so we can send bad ones.