Skip to content

Commit

Permalink
Some cleaning up
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Martinez <[email protected]>
  • Loading branch information
sebastinez committed Oct 18, 2023
1 parent 4993bc7 commit 363e1ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 35 deletions.
10 changes: 3 additions & 7 deletions sdk/typescript/packages/nodejs-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ const { createNymMixnetClient } = require('../dist/cjs/index.js');
async () => {
const nym = await createNymMixnetClient();

nym.events.subscribeToLoaded((e) => {
console.log('Loaded');
});

nym.events.subscribeToTextMessageReceivedEvent(async (e) => {
console.log(e.args.payload);
if (e.args.payload === 'Hello') await nym.client.stop();
if (e.args.payload === 'Hello') {
await nym.client.stop();
}
});

const nymApiUrl = 'https://validator.nymtech.net/api/';
Expand All @@ -28,7 +25,6 @@ async () => {
});

nym.events.subscribeToConnected(async (e) => {
console.log('Connected');
// send a message to yourself
const message = 'Hello';
const recipient = await nym.client.selfAddress();
Expand Down
28 changes: 0 additions & 28 deletions sdk/typescript/packages/nodejs-client/internal/index.mjs

This file was deleted.

0 comments on commit 363e1ce

Please sign in to comment.