socks5-protocol
v0.2.4
Published
A Node.js library (in TypeScript and ESM) to encode/decode messages in SOCKS5 protocol.
Downloads
5
Maintainers
Readme
socks5-protocol
A Node.js library (in TypeScript and ESM) to encode/decode messages in SOCKS5 protocol.
Installation
npm i socks5-protocol
Usage
The naming of message types mostly follows the RFC 1928.
Here a list of implemented messages:
AuthReq
: The message from client for auth method selectionAuthResp
: Server's response toAuthReq
ConnReq
: The message from client to request a connection, binding, or associationConnResp
: Server's response toConnReq
UdpReq
: Message for UDP communication between server and client
All the above message types have corresponding encoding and decoding functions.
A SockError
will be thrown when encoding/decoding fails.
License
Apache-2.0
Copyright 2024 DCsunset
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.