StompHandler constructor

StompHandler({
  1. required StompConfig config,
})

Implementation

StompHandler({required this.config}) {
  if (config.useSockJS) {
    // use SockJS parser
    _parser = SockJSParser(
      onStompFrame: _onFrame,
      onPingFrame: _onPing,
      onDone: _onDone,
    );
  } else {
    _parser = StompParser(_onFrame, _onPing);
  }
}