New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/hcashorg/hcashrpcclient

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/hcashorg/hcashrpcclient

  • v0.0.0-20180124034546-ba3a18d6f9f2
  • Source
  • Go
  • Socket score

Version published
Created
Source

hcashd Websockets Example

This example shows how to use the hcashrpcclient package to connect to a hcashd RPC server using TLS-secured websockets, register for block connected and block disconnected notifications, and get the current block count.

This example also sets a timer to shutdown the client after 10 seconds to demonstrate clean shutdown.

Running the Example

The first step is to use go get to download and install the hcashrpcclient package:

$ go get github.com/HcashOrg/hcashrpcclient

Next, modify the main.go source to specify the correct RPC username and password for the RPC server:

	User: "yourrpcuser",
	Pass: "yourrpcpass",

Finally, navigate to the example's directory and run it with:

$ cd $GOPATH/src/github.com/HcashOrg/hcashrpcclient/examples/hcashdwebsockets
$ go run *.go

License

This example is licensed under the copyfree ISC License.

FAQs

Package last updated on 24 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc