/wasmIRCpp-client

wasmIRCpp is an webassembly implementation of an IRC client

Primary LanguageJavaScript

wasmIRCpp

wasmIRCpp is a webassembly implementation of the client using the IRC protocol. It is based on the implementation for inspIRCdv3 and uses a simple interface as an example of how to use it.

Building

To build this project you'll need emscripten and make. Generated files will be place inside "wasm" folder

make

Usage

To make use of the client, create a ircController class through importing the emscripten generated ircppwasm.js file

<script src="./wasm/ircppwasm.js">/*IMPORT*/</script>
<script>
  var irc;
  var module;

  async function init() {
    module = await Module();
    irc = new module.ircController();
    return module;
  }
  const m = init();
</script>

Contributing

You can contribute by testing and reporting any issues with the library and suggestions are welcomed as well.

License

Mozilla Public License 2.0