rpc-proxy

command module
v0.0.0-...-bbafd50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2018 License: BSD-2-Clause Imports: 9 Imported by: 0

README

Phore Websockets server

To make this working, you need to add -blocknotify to your phore daemon, like:

./phored -blocknotify="~/notify.sh %s"

In your notify.sh file you need to put the following content:

#!/bin/sh
curl "http://127.0.0.1:8080/notify" -d "$@"

This is used to notify the websockets server of new blocks on Phore blockchain.

Running the server

go run *.go

To test to see it working

  1. Go to http://localhost:8080/ and click on "Subscribe Address"
  2. Run the following command:
curl "http://127.0.0.1:8080/notify" -d "5359ecc29127cb9a1966caf1b10f57aeec631c5fb01f882fbcaafefeaaae3219"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package websockets handles websocket messages and provides a simple websockets server.
Package websockets handles websocket messages and provides a simple websockets server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL