We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a4826c commit 76d80e6Copy full SHA for 76d80e6
README.md
@@ -326,6 +326,23 @@ app.get('/', (c) => {
326
serve(app)
327
```
328
329
+## Listen to a UNIX domain socket
330
+
331
+You can configure the HTTP server to listen to a UNIX domain socket instead of a TCP port.
332
333
+```ts
334
+import { createAdaptorServer } from '@hono/node-server'
335
336
+// ...
337
338
+const socketPath ='/tmp/example.sock'
339
340
+const server = createAdaptorServer(app)
341
+server.listen(socketPath, () => {
342
+ console.log(`Listening on ${socketPath}`)
343
+})
344
+```
345
346
## Related projects
347
348
- Hono - <https://hono.dev>
0 commit comments