From a96dca352b8605d9c607e351ad8a891d9088087f Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 6 Aug 2024 20:07:30 +0200 Subject: [PATCH] docs: update links to sources --- docs/2.adapters/bun.md | 2 +- docs/2.adapters/cloudflare.md | 4 ++-- docs/2.adapters/deno.md | 2 +- docs/2.adapters/node.md | 4 ++-- docs/2.adapters/sse.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/2.adapters/bun.md b/docs/2.adapters/bun.md index b080cba..727ea93 100644 --- a/docs/2.adapters/bun.md +++ b/docs/2.adapters/bun.md @@ -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. :: diff --git a/docs/2.adapters/cloudflare.md b/docs/2.adapters/cloudflare.md index b23059a..49bb980 100644 --- a/docs/2.adapters/cloudflare.md +++ b/docs/2.adapters/cloudflare.md @@ -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 @@ -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. :: diff --git a/docs/2.adapters/deno.md b/docs/2.adapters/deno.md index 6a687b7..923e1e8 100644 --- a/docs/2.adapters/deno.md +++ b/docs/2.adapters/deno.md @@ -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. :: diff --git a/docs/2.adapters/node.md b/docs/2.adapters/node.md index 95d0a34..083de9a 100644 --- a/docs/2.adapters/node.md +++ b/docs/2.adapters/node.md @@ -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 @@ -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. :: diff --git a/docs/2.adapters/sse.md b/docs/2.adapters/sse.md index a31ee13..963caf2 100644 --- a/docs/2.adapters/sse.md +++ b/docs/2.adapters/sse.md @@ -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. ::