Files
simplex-chat/packages/simplexmq_io/example/simplexmq_io_example.dart
T
Evgeny Poberezkin 61e452356b transport test
2021-10-18 07:28:49 +01:00

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);
});
}));
}