Chapter 2: standard and review edits
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
const net = require('net');
|
||||
const net = require('net')
|
||||
|
||||
const HOSTNAME = 'localhost';
|
||||
const PORT = 3000;
|
||||
const HOSTNAME = 'localhost'
|
||||
const PORT = 3000
|
||||
|
||||
const socket = net.connect(PORT, HOSTNAME);
|
||||
const socket = net.connect(PORT, HOSTNAME)
|
||||
|
||||
socket.write('World');
|
||||
socket.write('World')
|
||||
|
||||
socket.on('data', (data) => {
|
||||
console.log(data.toString());
|
||||
});
|
||||
console.log(data.toString())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user