UNPKG
node-fetch-light
Version:
latest (0.0.1)
0.0.1
light-weight fetch wrapper library for node js
github.com/yeonfish6040/qfetch
yeonfish6040/qfetch
node-fetch-light
/
src
/
PacketHelper.ts
17 lines
(12 loc)
•
245 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
*
as
net
from
"net"
;
export
class
PacketHelper
{
private
packet
:
string
;
/** milliseconds */
private
timeout
:
number
;
constructor
(
packet =
""
) {
this
.
packet
= packet;
this
.
timeout
=
1000
; }
async
connect
(
) { } }