From 2db381eba9768acf855219ec9560e20a62659994 Mon Sep 17 00:00:00 2001 From: Leo K Date: Tue, 10 Aug 2021 00:28:17 +0200 Subject: feat: add experimental WebSocketStream API (#10365) This commit adds the experimental WebSocketStream API when using the --unstable flag. The explainer for the API can be found here: https://github.com/ricea/websocketstream-explainer --- runtime/errors.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/errors.rs') diff --git a/runtime/errors.rs b/runtime/errors.rs index f773be58d..db14bd8bf 100644 --- a/runtime/errors.rs +++ b/runtime/errors.rs @@ -159,6 +159,8 @@ pub fn get_error_class_name(e: &AnyError) -> Option<&'static str> { .or_else(|| deno_webgpu::error::get_error_class_name(e)) .or_else(|| deno_web::get_error_class_name(e)) .or_else(|| deno_webstorage::get_not_supported_error_class_name(e)) + .or_else(|| deno_websocket::get_network_error_class_name(e)) + .or_else(|| deno_websocket::get_abort_error_class_name(e)) .or_else(|| { e.downcast_ref::() .map(get_dlopen_error_class) -- cgit v1.2.3