1.0.0 • Published 5 years ago
@emsy/socket-event-forwarder v1.0.0
Socket event forwarder
A plugin for forwarding real-time socket events from an Ark relay node towards connected clients.
Installation
1 Add the plugin to your relay node.
cd ~/{core-bridgechain}/plugins && git clone https://github.com/e-m-s-y/socket-event-forwarder
2 Open ~/.config/{ark-core}/{mainnet|devnet|testnet}/plugins.js
and add the plugin config at the bottom of the file.
"@e-m-s-y/socket-event-forwarder": {
port: 3333, // The port the socket server server will listen to.
events: ['block.applied', 'transaction.applied'], // Events you want to forward.
}
3 Bootstrap the plugin.
cd ~/{core-bridgechain}
yarn bootstrap
4 Restart your relay.
Credits
License
1.0.0
5 years ago