mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
use a separate hyper connection for websockets
This commit is contained in:
parent
06a5ec08dc
commit
bfee4dc078
3 changed files with 65 additions and 14 deletions
|
@ -37,6 +37,9 @@ use crate::{stream_provider::ProviderUnencryptedAsyncRW, EpoxyError};
|
|||
extern "C" {
|
||||
#[wasm_bindgen(js_namespace = console, js_name = log)]
|
||||
pub fn js_console_log(s: &str);
|
||||
|
||||
#[wasm_bindgen(js_namespace = console, js_name = error)]
|
||||
pub fn js_console_error(s: &str);
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
|
@ -46,6 +49,13 @@ macro_rules! console_log {
|
|||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! console_error {
|
||||
($($expr:expr),*) => {
|
||||
$crate::utils::js_console_error(&format!($($expr),*));
|
||||
};
|
||||
}
|
||||
|
||||
pub trait UriExt {
|
||||
fn get_redirect(&self, location: &HeaderValue) -> Result<Uri, EpoxyError>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue