Skip to content

Commit

Permalink
docs: update links to sources
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 6, 2024
1 parent d662e48 commit a96dca3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/2.adapters/bun.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ Bun.serve({
- `bun:pong (peer, ws, data)`

::read-more
See [`playground/bun.ts`](https://github.com/unjs/crossws/tree/main/playground/bun.ts) for demo and [`src/adapters/bun.ts`](https://github.com/unjs/crossws/tree/main/src/adapters/bun.ts) for implementation.
See [`test/fixture/bun.ts`](https://github.com/unjs/crossws/blob/main/test/fixture/bun.ts) for demo and [`src/adapters/bun.ts`](https://github.com/unjs/crossws/blob/main/src/adapters/bun.ts) for implementation.
::
4 changes: 2 additions & 2 deletions docs/2.adapters/cloudflare.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
- `cloudflare:close (peer, event)`

::read-more
See [`playground/cloudflare.ts`](https://github.com/unjs/crossws/tree/main/playground/cloudflare.ts) for demo and [`src/adapters/cloudflare.ts`](https://github.com/unjs/crossws/tree/main/src/adapters/cloudflare.ts) for implementation.
See [`test/fixture/cloudflare.ts`](https://github.com/unjs/crossws/blob/main/test/fixture/cloudflare.ts) for demo and [`src/adapters/cloudflare.ts`](https://github.com/unjs/crossws/blob/main/src/adapters/cloudflare.ts) for implementation.
::

## Durable objects support
Expand Down Expand Up @@ -104,5 +104,5 @@ new_classes = ["$DurableObject"]
```

::read-more
See [`playground/cloudflare-durable.ts`](https://github.com/unjs/crossws/tree/main/playground/cloudflare-durable.ts) for demo and [`src/adapters/cloudflare-durable.ts`](https://github.com/unjs/crossws/tree/main/src/adapters/cloudflare-durable.ts) for implementation.
See [`test/fixture/cloudflare-durable.ts`](https://github.com/unjs/crossws/blob/main/test/fixture/cloudflare-durable.ts) for demo and [`src/adapters/cloudflare-durable.ts`](https://github.com/unjs/crossws/blob/main/src/adapters/cloudflare-durable.ts) for implementation.
::
2 changes: 1 addition & 1 deletion docs/2.adapters/deno.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ Deno.serve({ port: 3000 }, (request, info) => {
- `deno:error (peer, error)`

::read-more
See [`playground/deno.ts`](./playground/deno.ts) for demo and [`src/adapters/deno.ts`](./src/adapters/deno.ts) for implementation.
See [`test/fixture/deno.ts`](./test/fixture/deno.ts) for demo and [`src/adapters/deno.ts`](./src/adapters/deno.ts) for implementation.
::
4 changes: 2 additions & 2 deletions docs/2.adapters/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ server.on("upgrade", ws.handleUpgrade);
- `node:upgrade (peer, req)`

::read-more
See [`playground/node.ts`](https://github.com/unjs/crossws/tree/main/playground/node.ts) for demo and [`src/adapters/node.ts`](https://github.com/unjs/crossws/tree/main/src/adapters/node.ts) for implementation.
See [`test/fixture/node.ts`](https://github.com/unjs/crossws/blob/main/test/fixture/node.ts) for demo and [`src/adapters/node.ts`](https://github.com/unjs/crossws/blob/main/src/adapters/node.ts) for implementation.
::

## uWebSockets
Expand Down Expand Up @@ -84,5 +84,5 @@ server.listen(3001, () => {
- `uws:subscription (ws, topic, newCount, oldCount)`

::read-more
See [`playground/node-uws.ts`](https://github.com/unjs/crossws/tree/main/playground/node-uws.ts) for demo and [`src/adapters/node-uws.ts`](https://github.com/unjs/crossws/tree/main/src/adapters/node-uws.ts) for implementation.
See [`test/fixture/node-uws.ts`](https://github.com/unjs/crossws/blob/main/test/fixture/node-uws.ts) for demo and [`src/adapters/node-uws.ts`](https://github.com/unjs/crossws/blob/main/src/adapters/node-uws.ts) for implementation.
::
2 changes: 1 addition & 1 deletion docs/2.adapters/sse.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ ev.addEventListener("message", (event) => {
```

::read-more
See [`playground/sse.ts`](https://github.com/unjs/crossws/tree/main/playground/sse.ts) for demo and [`src/adapters/sse.ts`](https://github.com/unjs/crossws/tree/main/src/adapters/sse.ts) for implementation.
See [`test/fixture/sse.ts`](https://github.com/unjs/crossws/blob/main/test/fixture/sse.ts) for demo and [`src/adapters/sse.ts`](https://github.com/unjs/crossws/blob/main/src/adapters/sse.ts) for implementation.
::

0 comments on commit a96dca3

Please sign in to comment.