web-serial-rxjs API Documentation
    Preparing search index...

    Function isBrowserSupported

    • Check if the browser supports the Web Serial API (non-throwing version).

      This is a convenience function that returns a boolean indicating whether the Web Serial API is available. Unlike checkBrowserSupport, this function does not throw an error if the API is not available.

      Returns boolean

      true if the Web Serial API is supported, false otherwise

      if (isBrowserSupported()) {
      const client = createSerialClient();
      // Use serial port functionality
      } else {
      console.error('Web Serial API is not supported in this browser');
      // Show fallback UI or message
      }