FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TypeScriptSamples/node/TcpServer.ts at master · McJeremy/TypeScriptSamples · GitHub
McJeremy
TypeScriptSamples
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
TypeScriptSamples
/
node
/
TcpServer.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (7 loc) · 214 Bytes
Breadcrumbs
TypeScriptSamples
/
node
/
TcpServer.ts
Copy path
File metadata and controls
9 lines (7 loc) · 214 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
///<reference path='node.d.ts'/>
import
net
=
require
(
'net'
)
;
var
server
=
net
.
createServer
(
function
(
socket
)
{
socket
.
write
(
'Echo server\r\n'
)
;
socket
.
pipe
(
socket
)
;
}
)
;
server
.
listen
(
1337
,
'127.0.0.1'
)
;
Back
|
FazBrowse Home
|
New Git URL