mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-11 17:35:01 +00:00
13 lines
337 B
Dart
13 lines
337 B
Dart
import 'dart:io';
|
|
|
|
void main() {
|
|
ServerSocket.bind('localhost', 8080)
|
|
.then((server) => server.listen((Socket socket) {
|
|
print('New client connection');
|
|
socket.listen((List<int> data) {
|
|
String result = String.fromCharCodes(data);
|
|
print(result);
|
|
});
|
|
}));
|
|
}
|