go-waku/examples/waku-csharp
harsh jain ddf188bbf8
feat: remove named topic (#844)
* feat: remove named topic

* fix: update examples

* Update library/mobile/api.go
2023-10-30 21:56:26 +07:00
..
waku-csharp feat: remove named topic (#844) 2023-10-30 21:56:26 +07:00
.gitignore feat: c-sharp example (#222) 2022-04-02 20:22:42 -04:00
README.md chore: rename status-im/go-waku to waku-org/go-waku 2022-11-09 16:03:40 -04:00
waku-csharp.sln feat: c-sharp example (#222) 2022-04-02 20:22:42 -04:00

README.md

C Sharp Example

Requirements

Running this example

These instructions should be executed in git bash:

# Clone the repository
git clone https://github.com/waku-org/go-waku.git
cd go-waku

# Build the .dll
make dynamic-library

# Copy the library into `libs/` folder
cp ./build/lib/libgowaku.* ./build/examples/waku-csharp/waku-csharp/libs/.

Open the solution waku-csharp.sln in Visual Studio and run the program.

Description

The following files are available:

  • Program.cs contains an example program which uses the waku library
  • Waku.cs: file containing the Waku namespace with classes that allows you to instantiate a Go-Waku node
    • Waku.Config: class used to configure the waku node when instantiation
    • Waku.Node: waku node. The following methods are available:
      • Node - constructor. Initializes a waku node. Receives an optional Waku.Config
      • Start - mounts all the waku2 protocols
      • Stop - stops the waku node
      • PeerId - obtain the peer ID of the node.
      • PeerCnt - obtain the number of connected peers
      • ListenAddresses - obtain the multiaddresses the node is listening to

Help wanted!

  • Is it possible to build go-waku automatically by executing make dynamic-library and copying the .dll automatically into libs/ in Visual Studio?