Skip to content

Commit

Permalink
Revert "update to rpcOptions instead of port"
Browse files Browse the repository at this point in the history
This reverts commit 746e8ca.
  • Loading branch information
Rinse12 committed Apr 28, 2024
1 parent 746e8ca commit 0ca7d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-server/start-plebbit-rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const startPlebbitRpc = async ({port, ipfsApiPort, pubsubApiPort}) => {

console.log('plebbit rpc: starting...')
const {default: PlebbitRpc} = await import('@plebbit/plebbit-js/dist/node/rpc/src/index.js')
const plebbitWebSocketServer = await PlebbitRpc.PlebbitWsServer({rpcOptions: {port}, plebbitOptions})
const plebbitWebSocketServer = await PlebbitRpc.PlebbitWsServer({port, plebbitOptions})
plebbitWebSocketServer.ws.on('connection', (socket, request) => {
console.log('plebbit rpc: new connection')
console.log('new plebbit json-rpc websocket client connection')
Expand Down

0 comments on commit 0ca7d53

Please sign in to comment.