Skip to content
File

Blob: samples/tcp-ingress/worker.js

javascript12 lines
1 
2export default {
3 async fetch(req) {
4 return new Response("ok");
5 },
6 
7 async connect(socket) {
8 // pipe the input stream to the output
9 await socket.readable.pipeTo(socket.writable);
10 }
11};