Coder Social home page Coder Social logo

operatorfoundation / canaryios Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 0.0 2.58 MB

An example iOS application to demonstrate one way to use the Canary Library for iOS. Canary is a tool for testing transport connections and recording the results in an easy to share csv format.

License: MIT License

Swift 100.00%
ios-app pluggable-transports swift

canaryios's Introduction

CanaryiOS

An example iOS application to demonstrate one way to use the Canary Library for iOS.

Canary is a tool for testing transport connections and recording the results in an easy to share csv format.

Canary will run a series of transport tests based on the configs that you provide. It is possible to test each transport on a different transport server based on what host information is provided in the transport config files.

Currently Shadow and Starbridge tests are supported. Replicant support is underway, and will be capable of mimicking other transports when it is complete.

Running Canary

This example app requires iOS 16 or higher.

To run Canary transport connection tests:

  • In the app select the directory that has the config files for the transports that you want to use for connection tests (transport client config files must be saved in the file management system of the device).
  • Select the number of times you would like the tests to be repeated.
  • Tap the "Run Tests" button to start the connection tests.

To view transport connection test results:

  • Tap the "view results" button
  • Tap the result file of your choice (A list of file names will be shown, each file is named with the day the tests were run)
  • The following screen will show the results of each test in the file in text format.
  • Tap the share button in the top right-hand corner to share the results as a csv file.

Transport config files

See the documenation for a specific transport if you need instructions on how to generate config files for Canary supported transports:

Config files must conform to the following convention:

  • They must be valid JSON files that conform to the specific transport requirements (e.g. Shadow, Starbridge).
  • File names must include the name of the specific transport (e.g. "ShadowClientConfig.json", "StarbridgeClientConfig.json").

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.