accept method

void accept()

Implementation

void accept() {
  httpServer.listen((HttpRequest req) {
    if (req.uri.path == uri.path) {
      WebSocketTransformer.upgrade(req)
          .then((webSocket) =>
              receiveConnection(WebSocketDuplexConnection(webSocket)))
          .then((value) => {});
    }
  });
}