merge 0.4.0
This commit is contained in:
@@ -7,9 +7,9 @@ BDContract SDK for Node.js and browsers.
|
||||
`npm install @bdware/bdcontract-sdk`
|
||||
|
||||
```typescript
|
||||
import { Client } from '@bdware/bdcontract-sdk'
|
||||
import { WsClient } from '@bdware/bdcontract-sdk'
|
||||
import { sm2 } from 'sm-crypto'
|
||||
const client = new Client(
|
||||
const client = new WsClient(
|
||||
url,
|
||||
(ev) => {
|
||||
console.log(JSON.stringify(ev))
|
||||
@@ -42,7 +42,7 @@ function print(string) {
|
||||
|
||||
const url = 'ws://021.node.internetapi.cn:21030/SCIDE/SCExecutor'
|
||||
|
||||
const client = new bdcontract.Client(
|
||||
const client = new bdcontract.WsClient(
|
||||
url,
|
||||
(ev) => {
|
||||
console.log(JSON.stringify(ev))
|
||||
@@ -76,4 +76,4 @@ async function anotherPlace() {
|
||||
// In another place, wait for login to complete
|
||||
const success = await client.Loggedin()
|
||||
}()
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user