bind method

void bind(
  1. String address,
  2. int port
)

Implementation

void bind(String address, int port) async {
  _mainSocket = await ServerSocket.bind(address, port);
  _mainSocket.listen((newSocket) {
    _schedule(newSocket);
  });
}