Skip to content

Latest commit

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

UNIX Socket

Run LinterRun Unit Tests

Use this library to open and connect to UNIX sockets, send requests and get responses similar to a fetch request. This library supports basic response chunk decoding.

Example

Connect to the docker.sock UNIX socket, send a request to /containers/json and log the response.

import{Socket}from'@typescriptplayground/socket';constsocket=newSocket('/var/run/docker.sock');awaitsocket.request('/containers/json').then((res)=>res.json()).then((json)=>console.log(json));

About

Open and connect to UNIX sockets, send requests and get fetch like responses back.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages