instance property

The default instance of SignalrSocketPlatform to use.

Defaults to MethodChannelSignalrSocket.

Implementation

static SignalrSocketPlatform get instance => _instance;
void instance=(SignalrSocketPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends SignalrSocketPlatform when they register themselves.

Implementation

static set instance(SignalrSocketPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}