Skip to content

Commit 0d19b0e

Browse files
authored
Update README.md
1 parent ba86473 commit 0d19b0e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ To work with Hyperspace, you'll probably want to start with the [Node.js client
5050

5151
### Simulator
5252

53-
Hyperspace includes a "simulator" that can be used to create one-off Hyperspace instances, which are useful for testing.
53+
Hyperspace includes a "simulator" that can be used to create one-off Hyperspace instances, which can be used for testing.
5454

5555
```js
56-
const createHyperspaceSimulator = require('hyperspace/simulator')
57-
// client and server are instances of HyperspaceServer and HyperspaceClient that can be used for testing.
58-
const { client, server, cleanup } = await createHyperspaceSimulator()
56+
const simulator = require('hyperspace/simulator')
57+
// client is a HyperspaceClient, server is a HyperspaceServer
58+
const { client, server, cleanup } = await simulator()
5959
```
6060

6161
### License

0 commit comments

Comments
 (0)