mizchi/crater-webdriver-bidi/rpc does not have a README file
using @mizchi/crater-webdriver-bidi/contract { type ApiError }
using @mizchi/crater-webdriver-bidi/contract { type ApiMethod }
pub(all) enum RpcErrorCode { ParseError InvalidRequest MethodNotFound InvalidParams InternalError ElementNotFound PageNotFound Timeout NavigationFailed} derive(Eq, @moonbitlang/core/debug.DebugDebug)
impl Show for RpcErrorCode
fn output(self : RpcErrorCode, logger : &Logger) -> Unit
fn RpcErrorCode::code(self : RpcErrorCode) -> Int
pub(all) enum RpcId { Num(Int) Str(String) Null} derive(Eq, @moonbitlang/core/debug.DebugDebug)
impl Show for RpcId
fn output(self : RpcId, logger : &Logger) -> Unit
fn RpcId::to_json(self : RpcId) -> String
pub(all) struct RpcRequest { jsonrpc : String id : RpcId method_name : String params : Map[String, String]} derive(@moonbitlang/core/debug.DebugDebug)
impl Show for RpcRequest
fn output(self : RpcRequest, logger : &Logger) -> Unit
pub(all) enum RpcResponse { Success(id~ : RpcId, result~ : String) Error(id~ : RpcId, code~ : Int, message~ : String, data~ : String?)} derive(@moonbitlang/core/debug.DebugDebug)
impl Show for RpcResponse
fn output(self : RpcResponse, logger : &Logger) -> Unit
fn RpcResponse::to_json(self : RpcResponse) -> String
fn api_error_to_rpc(id : RpcId, err : @mizchi/crater-webdriver-bidi/contract.ApiErrorApiError) -> RpcResponse
fn parse_json_object(json : String) -> Map[String, String]
fn parse_method(name : String) -> @mizchi/crater-webdriver-bidi/contract.ApiMethodApiMethod?
fn rpc_error(id : RpcId, code : RpcErrorCode, message : String) -> RpcResponse
fn rpc_error_with_data(id : RpcId, code : RpcErrorCode, message : String, data : String) -> RpcResponse
fn rpc_success_bool(id : RpcId, value : Bool) -> RpcResponse
fn rpc_success_json(id : RpcId, json : String) -> RpcResponse
fn rpc_success_null(id : RpcId) -> RpcResponse
fn rpc_success_number(id : RpcId, value : Double) -> RpcResponse
fn rpc_success_string(id : RpcId, value : String) -> RpcResponse
Install
WebDriver BiDi adapter module for crater browser integration
Dependencies
Powered by MoonBit
© 2026 mooncakes.io