WebTransportServerConfig constructor

WebTransportServerConfig()

Creates an empty configuration; an identity and a bind address are needed before it can be used.

Implementation

WebTransportServerConfig() : _handle = b.wt_server_config_new() {
  if (_handle == nullptr) {
    throw WebTransportException(
      b.wt_status_t.WT_ERR_IO.value,
      'could not allocate a server configuration',
    );
  }
}