setEndpoint method

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

Set the Appwrite endpoint.

Implementation

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