admin_startWS
starts a WebSocket based JSON RPC API webserver to
handle client requests.
admin_startWS(host = "127.0.0.1", port = 8546, cors = "",
apis = "eth,net,web3")
String - Network interface to open the listener socket on.
Integer - Network port to open the listener socket on.
String - Cross-origin resource sharing header to use.
String - API modules to offer over this interface.
Boolean - true
the execution was successful.
Other admin functions: admin_addPeer
,
admin_datadir
,
admin_nodeInfo
, admin_peers
,
admin_setSolc
,
admin_startRPC
,
admin_stopRPC
, admin_stopWS
,
gethr
# NOT RUN {
admin_startWS()
admin_startWS('193.23.92.1', 8999, '*', 'eth,net,web3,personal,shh,
miner,txpool,admin,debug')
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab