Dashboard
Repositories
filestore
Aktivität
Suche
Login
public
/
web-development/examples
Web Development Examples
Übersicht
Reflog
Commits
Dateibaum
Dokumentation
Forks
Vergleichen
Blame
|
Historie
|
Raw
add mongodb installation notes
Sascha Schulz
vor 4 Tagen
c98907289eb9db87a5bea37f2e2c39d6d1f59ce5
[public/web-development/examples.git]
/
templates
/
010-nodejs
/
tcp-server.js
1
2
3
4
5
6
7
8
9
10
11
12
13
const net = require("net");
const server = net.createServer((socket) => {
// new incoming connection
socket.on("data", (data) => {
// data is a buffer
});
socket.write("Hello World!");
});
server.listen(3000);