Skip to content

WebSockets

Robin Gist edited this page Jun 16, 2018 · 5 revisions

Geth

Open geth with a command line something like this:

geth --dev --rpc --ws --wsaddr="0.0.0.0" --wsorigins "*"

Use ws or wss for your WebSockets url.

reminder: on Geth, WebSockets are on port 8546

Ganache

At the moment, Websockets are not usable on either Ganache GUI or Ganache CLI. Web3.py will crash both.

Clone this wiki locally