Closed marc2332 closed 11 months ago
This PR allows handling multiple sessions at once.
Main branch:
PR:
My testing server (deno js):
import { Application } from "https://deno.land/x/oak/mod.ts"; const app = new Application(); const sleep = (ms) => new Promise(r => setTimeout(() => r(), ms)) app.use(async (ctx) => { await sleep(1000); ctx.response.body = "Hello World!"; }); await app.listen({ port: 3000 });
my testing client:
const A = async (n) => { await fetch("http://localhost:8080/RExH9NPsSCWqmG5JFC257A"); console.log(n) } const B = async (n) => { await fetch("http://localhost:8080/iuIVdmhLTem2lTux-pzRKg"); console.log(n) } A(1); B(2); A(3); B(4); A(5); B(6);
This PR allows handling multiple sessions at once.
Main branch:
PR:
My testing server (deno js):
my testing client: