mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Edit Client constructor to take a server URI (#1544)
* edit Client * fix TS issues + tests * minor edits * rename ClientBroadcast -> BroadcastClient
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import {Client} from '../../dist/npm'
|
||||
|
||||
const client = new Client({
|
||||
server: 'wss://s.altnet.rippletest.net:51233'
|
||||
})
|
||||
const client = new Client('wss://s.altnet.rippletest.net:51233')
|
||||
|
||||
getTransaction()
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Client} from '../../dist/npm'
|
||||
|
||||
const client = new Client({server: 'wss://s.altnet.rippletest.net:51233'})
|
||||
const client = new Client('wss://s.altnet.rippletest.net:51233')
|
||||
|
||||
parseAccountFlags()
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {Client} from '../../dist/npm'
|
||||
|
||||
const client = new Client({
|
||||
// server: 'wss://s.altnet.rippletest.net:51233'
|
||||
// server: 'ws://35.158.96.209:51233'
|
||||
server: 'ws://34.210.87.206:51233'
|
||||
})
|
||||
const client = new Client(
|
||||
// 'wss://s.altnet.rippletest.net:51233'
|
||||
// 'ws://35.158.96.209:51233'
|
||||
'ws://34.210.87.206:51233'
|
||||
)
|
||||
|
||||
sign()
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ async function reliableTransactionSubmissionExample() {
|
||||
async function performPayments(payments) {
|
||||
const finalResults = []
|
||||
const txFinalizedPromises = []
|
||||
const client = new Client({server: 'wss://s.altnet.rippletest.net:51233'})
|
||||
const client = new Client('wss://s.altnet.rippletest.net:51233')
|
||||
await client.connect()
|
||||
|
||||
for (let i = 0; i < payments.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user