Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add uwebsockets.js #6506

Merged
merged 25 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
58b6c4c
add elysia
jim-king-2000 Jun 9, 2023
9ee2f46
add stricjs
jim-king-2000 Jun 9, 2023
7563173
add hono
jim-king-2000 Jun 9, 2023
0b23fc0
modify indentation
jim-king-2000 Jun 9, 2023
36c98ce
modify version number and add bun.Dockerfile
jim-king-2000 Jun 9, 2023
d2b8beb
add fast-deno
jim-king-2000 Jun 9, 2023
a63091d
Merge branch 'master' into master
jim-king-2000 Jun 12, 2023
2403ae2
add version number for fast-deno
jim-king-2000 Jun 12, 2023
99d03d2
update the versionn number of deno
jim-king-2000 Jun 13, 2023
f52834e
Merge branch 'the-benchmarker:master' into master
jim-king-2000 Jun 13, 2023
0360cdc
revise the version number of fast-deno
jim-king-2000 Jun 13, 2023
0ed8d2d
Merge branch 'the-benchmarker:master' into master
jim-king-2000 Jun 13, 2023
3de509a
add uwebsockets.js
jim-king-2000 Jul 13, 2023
b9be811
change dir name
jim-king-2000 Jul 13, 2023
86e14e3
change dir name
jim-king-2000 Jul 13, 2023
9902f47
change dependencies
jim-king-2000 Jul 13, 2023
5d14613
Merge branch 'the-benchmarker:master' into master
jim-king-2000 Jul 21, 2023
3f9c7df
Merge branch 'master' of github.com:jim-king-2000/web-frameworks
jim-king-2000 Jul 22, 2023
ace17ca
fix bugs
jim-king-2000 Jul 22, 2023
6d7a324
fix bugs
jim-king-2000 Jul 23, 2023
4ee4dc5
Merge branch 'the-benchmarker:master' into master
jim-king-2000 Jul 24, 2023
6e21d3c
fix build break for uwebsockets
jim-king-2000 Jul 24, 2023
32644af
fix build break for uwebsockets
jim-king-2000 Jul 24, 2023
200916b
fix build break for uwebsockets
jim-king-2000 Jul 24, 2023
29800c5
fix build break
jim-king-2000 Jul 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions javascript/uwebsockets/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { App } from "uWebSockets.js";

// Create a new instance of HyperExpress HTTP
const port = 3000;
const app = App();

// GET "/" => 200 with empty body
app.get("/", (res, req) => {
res.end("");
});

// GET "/user/:id" => 200 with "id" as body
app.get("/user/:id", (res, req) => {
res.end(req.getParameter(0));
});

// POST "/user" => 200 with empty body
app.post("/user", (res, req) => {
res.end("");
});

// Start the server on port 3000
app.listen(port, () => {});
6 changes: 6 additions & 0 deletions javascript/uwebsockets/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework:
github: uNetworking/uWebSockets.js
version: '20.30'

engines:
- uwebsockets
5 changes: 5 additions & 0 deletions javascript/uwebsockets/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.30.0"
}
jim-king-2000 marked this conversation as resolved.
Show resolved Hide resolved
}
Loading