HomeSource World

node: allow websocket and HTTP on the same port (#20810)

Description

node: allow websocket and HTTP on the same port (#20810)

This change makes it possible to run geth with JSON-RPC over HTTP and
WebSocket on the same TCP port. The default port for WebSocket
is still 8546.

    geth --rpc --rpcport 8545 --ws --wsport 8545

This also removes a lot of deprecated API surface from package rpc.
The rpc package is now purely about serving JSON-RPC and no longer
provides a way to start an HTTP server.

Details

Provenance
rene <41963722+renaynay@users.noreply.github.com>Authored on Apr 8 2020, 11:33 AM
GitHub <noreply@github.com>Committed on Apr 8 2020, 11:33 AM
Parents
rGETH5065cdefffbd: accounts/abi/bind: Refactored topics (#20851)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETH07d909ff3283: node: allow websocket and HTTP on the same port (#20810) (authored by rene <41963722+renaynay@users.noreply.github.com>).Apr 8 2020, 11:33 AM