pub trait BroadcastChannelMethods {
    // Required methods
    fn Name(&self) -> DOMString;
    fn PostMessage(
        &self,
        cx: SafeJSContext,
        message: HandleValue<'_>,
    ) -> Result<(), Error>;
    fn Close(&self);
    fn GetOnmessage(&self) -> Option<Rc<EventHandlerNonNull>>;
    fn SetOnmessage(&self, value: Option<Rc<EventHandlerNonNull>>);
    fn GetOnmessageerror(&self) -> Option<Rc<EventHandlerNonNull>>;
    fn SetOnmessageerror(&self, value: Option<Rc<EventHandlerNonNull>>);
    fn Constructor(
        global: &GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        name: DOMString,
    ) -> Root<Dom<BroadcastChannel>>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§