Skip to content

Commit 0073ba3

Browse files
lightning-sagarsagar sethderberg
authored
docs: update the correct path for JS client in WebSocket client README (#1890)
Co-authored-by: sagar seth <lightningsagar0@email.com> Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
1 parent d1c2382 commit 0073ba3

File tree

1 file changed

+1
-1
lines changed
  • packages/templates/clients/websocket/javascript

1 file changed

+1
-1
lines changed

packages/templates/clients/websocket/javascript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ You can test this template:
77
4. Install with `npm install` and run test with `npm run test`
88
5. Start example script that uses a client library generated by the test: `node example.js`
99

10-
> By default this is testing against Hoppscotch echo service. You can modify `packages/templates/clients/websocket/javascript/example.js` and change first line to `const WSClient = require('./tests/temp/snapshotTestResult/client_postman/client.js');` and run `node example.js` again. You will see example still works but now it is using a different API. This is possible since both AsyncAPI documents define the same name of operation for sending messages: `sendEchoMessage` so each client generated has the same API.
10+
> By default this is testing against Hoppscotch echo service. You can modify `packages/templates/clients/websocket/javascript/example.js` and change first line to `const WSClient = require('./test/temp/snapshotTestResult/client_postman/client.js');` and run `node example.js` again. You will see example still works but now it is using a different API. This is possible since both AsyncAPI documents define the same name of operation for sending messages: `sendEchoMessage` so each client generated has the same API.

0 commit comments

Comments
 (0)