mc-beta-server/index.js

20 lines
304 B
JavaScript
Raw Normal View History

2021-08-11 15:05:14 +01:00
const server = new (require('net').Server)();
const config = require("./config.json");
2021-08-10 00:40:30 +01:00
2021-08-11 15:05:14 +01:00
server.listen(config.port, function() {
2021-08-10 00:40:30 +01:00
});
server.on('connection', function(socket) {
2021-08-11 15:05:14 +01:00
socket.on('data', function(chunk) {
2021-08-10 08:28:28 +01:00
2021-08-11 15:05:14 +01:00
});
2021-08-10 23:21:44 +01:00
2021-08-11 15:05:14 +01:00
socket.on('end', function() {
2021-08-10 23:21:44 +01:00
2021-08-11 15:05:14 +01:00
});
2021-08-10 23:21:44 +01:00
2021-08-11 15:05:14 +01:00
socket.on('error', function(err) {
2021-08-10 23:21:44 +01:00
2021-08-11 15:05:14 +01:00
});
});