problem: WS proxy uses binary frames (#182)
fix: #180 (cherry picked from commit 2dcb56e8c4467cfdc549fe918427fce593703ca3)
This commit is contained in:
13
demo/test.html
Normal file
13
demo/test.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<script src="https://cdn.ethers.io/lib/ethers-5.2.umd.min.js"
|
||||
type="application/javascript">
|
||||
</script>
|
||||
|
||||
<script type="application/javascript">
|
||||
provider = new ethers.providers.WebSocketProvider("ws://127.0.0.1:9080/eth");
|
||||
provider.getBlockNumber().then((blockNumber) => {
|
||||
console.log("from dshackle", blockNumber);
|
||||
}).catch(console.warn);
|
||||
</script>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user