setEndpoint method

  1. @override
ClientBrowser setEndpoint(
  1. String endPoint
)

Set the Appwrite endpoint.

Implementation

@override
ClientBrowser setEndpoint(String endPoint) {
  _endPoint = endPoint;
  _endPointRealtime = endPoint
      .replaceFirst('https://', 'wss://')
      .replaceFirst('http://', 'ws://');
  return this;
}