Notable Pseudocode Mashups

    @windingtree/lpms-server
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.0 • Public • Published

    run server for dev - yarn dev

    run swagger - npx ts-node ./swagger/server.ts

    How to add observer on waku:

    Test - is instanse from protobuff

    import WakuService from './services/WakuService';
    import { Test } from './proto/test';
    import WakuService, { WakuMessageHandler } from './services/WakuService';
    
    const wakuService = await WakuService.getInstance().connect();
    const handler: WakuMessageHandler = (message) => {
      return wakuService.processMessage(Test, message);
    };
    
    await wakuService.makeWakuObserver(handler, ['some-topic']);
    const wakuService = await WakuService.getInstance().connect();
    const testPayload: Test = {
      test1: 'some-message',
      test2: 'some-message 2'
    };
    
    await wakuService.sendMessage(Test, testPayload, 'some-topic');

    Prometheus implementation: Set .env variables

    APP_PROMETHEUS_PORT=9100
    PROMETHEUS_ENABLED=true
    
    http://localhost:9100/metrics - metrics api
    

    Install

    npm i @windingtree/lpms-server

    DownloadsWeekly Downloads

    15

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    775 kB

    Total Files

    166

    Last publish

    Collaborators

    • valera_rozuvan
    • kostysh
    • kvakes
    • tomashq