Skip to content

Commit

Permalink
Update readme pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Dec 14, 2024
1 parent 0856308 commit 81d6b34
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/routes/packages/client-node/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<Highlight language={bash} code={`npm install --save @nymphjs/client-node`} />

<p>
This package is the Nymph client for Node.js. You can find CJS in <code
This package is the Nymph client for Node.js. You can find ES modules in <code
>dist</code
>, or TS source in <code>src</code>. There is also a
<strong><a href="{base}/packages/client">browser client</a></strong>.
Expand Down
4 changes: 2 additions & 2 deletions src/routes/packages/client/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<Highlight language={bash} code={`npm install --save @nymphjs/client`} />

<p>
This package is the Nymph client for browsers. You can find UMD in <code
This package is the Nymph client for browsers. You can find ES modules in <code
>dist</code
>, or TS source in <code>src</code>. There is also a
<strong><a href="{base}/packages/client-node">Node.js client</a></strong>.
Expand All @@ -36,7 +36,7 @@
<Highlight
language={typescript}
code={`import { Nymph, PubSub } from '@nymphjs/client';
import TodoClass from 'Todo';
import TodoClass from './Todo.js';
const nymphOptions = {
restUrl: 'https://yournymphrestserver/path/to/your/endpoint',
Expand Down
6 changes: 3 additions & 3 deletions src/routes/packages/pubsub/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ const pubsub = createServer(8080, pubSubConfig, nymph);`}

<Highlight
language={typescript}
code={`import http from 'http';
import { server as WebSocketServer } from 'websocket';
code={`import http from 'node:http';
import ws from 'websocket';
import SQLite3Driver from '@nymphjs/driver-sqlite3';
import { Nymph } from '@nymphjs/nymph';
import { PubSub } from '@nymphjs/pubsub';
Expand Down Expand Up @@ -125,7 +125,7 @@ const listener = server.listen(port, () => {
\`Nymph-PubSub server started listening on port \${port}.\`,
);
});
const wsServer = new WebSocketServer({
const wsServer = new ws.server({
httpServer: listener,
// You should not use autoAcceptConnections for production
// applications, as it defeats all standard cross-origin protection
Expand Down
2 changes: 1 addition & 1 deletion src/routes/packages/sorter/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
code={`import { Nymph } from '@nymphjs/nymph';
// or
import { Nymph } from '@nymphjs/client';
import PageClass from 'Page';
import PageClass from './Page.js';
import { Sorter } from '@nymphjs/sorter';
Expand Down
3 changes: 2 additions & 1 deletion src/routes/packages/tilmeld-client/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
/>

<p>
You can find UMD in <code>dist</code>, or TS source in <code>src</code>.
You can find ES modules in <code>dist</code>, or TS source in
<code>src</code>.
</p>

<header class="major">
Expand Down

0 comments on commit 81d6b34

Please sign in to comment.