tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

hello-actor.js (475B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 /* eslint no-unused-vars: ["error", {"vars": "local"}] */
      4 
      5 "use strict";
      6 
      7 const protocol = require("resource://devtools/shared/protocol.js");
      8 
      9 const helloSpec = protocol.generateActorSpec({
     10  typeName: "helloActor",
     11 
     12  methods: {
     13    hello: {},
     14  },
     15 });
     16 
     17 class HelloActor extends protocol.Actor {
     18  constructor(conn) {
     19    super(conn, helloSpec);
     20  }
     21 
     22  hello() {}
     23 }