FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
koding/node_modules_koding/koding-dnode/test/stream.js at master · koding/koding · GitHub
This repository was archived by the owner on Aug 15, 2022. It is now read-only.
koding
/
koding
Public archive
Notifications
You must be signed in to change notification settings
Fork
604
Star
2.2k
Code
Issues
246
Pull requests
6
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
koding
/
node_modules_koding
/
koding-dnode
/
test
/
stream.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
29 lines (24 loc) · 748 Bytes
Breadcrumbs
koding
/
node_modules_koding
/
koding-dnode
/
test
/
stream.js
Copy path
File metadata and controls
executable file
·
29 lines (24 loc) · 748 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var
dnode
=
require
(
'../'
)
;
var
net
=
require
(
'net'
)
;
var
test
=
require
(
'tap'
)
.
test
;
test
(
'stream'
,
function
(
t
)
{
t
.
plan
(
1
)
;
var
port
=
Math
.
floor
(
Math
.
random
(
)
*
40000
+
10000
)
;
var
server
=
dnode
(
{
meow
:
function
f
(
g
)
{
g
(
'cats'
)
}
}
)
;
var
netServer
=
net
.
createServer
(
)
;
server
.
listen
(
netServer
)
;
var
times
=
0
;
netServer
.
listen
(
port
,
function
(
)
{
var
netClient
=
net
.
createConnection
(
port
)
;
dnode
.
connect
(
netClient
,
function
(
remote
)
{
remote
.
meow
(
function
(
cats
)
{
t
.
equal
(
cats
,
'cats'
)
;
netClient
.
end
(
)
;
netServer
.
close
(
)
;
t
.
end
(
)
;
}
)
;
}
)
;
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL