Skip to content

llSourcell/Decentralized_Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whisper-chat-example

This demonstrates how to use the Ethereum Whisper (v5) API. This is the code for this video on Youtube by Siraj Raval

Running the example

The example assumes that there is a running Whisper v5 node exposing an RPC interface at URL http://localhost:8545. For this, you can use geth with the folloing parameters:

$ geth <usual p2p flags> --shh --rpc --rpccorsdomain '*'

--shh is the option that enables Whisper v5 for the node.

--rpc enables the HTTP RPC interface and --rplccorsdomain '*' will disable this annoying CORS verification in the browser. Needless to say, this is only acceptable because this is an example.

Then, clone this repository and download the dependencies:

$ npm install

Finally, start the example with:

$ npm run dev

The example should be started and the application will be available at http://localhost:8080.

Credits

Credits for this code go to gballer. I've merely created a wrapper to get people started.

About

This is the code for "Decentralized Chat" by Siraj Raval

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published