createFullService static method

StompService createFullService(
  1. Host host, {
  2. String? serverName,
  3. Duration? timeout,
})

Creates a STOMP service with both client and server capabilities

Implementation

static StompService createFullService(Host host, {
  String? serverName,
  Duration? timeout,
}) {
  return StompService(
    host,
    options: StompServiceOptions.serverEnabled(
      serverName: serverName,
      timeout: timeout ?? StompConstants.defaultTimeout,
    ),
  );
}