Sha256: e1ddb31dfb806d716eb0072b178760bf343b0f8d54339dcfad884ee6c93bdb0d

Contents?: true

Size: 975 Bytes

Versions: 31

Compression:

Stored size: 975 Bytes

Contents

#Test Service
This is the test service. Used for various specs

#Useful variables
  * `test_service_connected` - A hash containing all the base pointers of *connected* controllers `{bp => true, ...}`.

#Requests
  * `test_sync` - Will send you a synchronous response via the event `test_sync_res` that contains
    the same parameters that you sent
  * `test_async` - Will send you a synchronous response via the event `test_async_res` that contains
e.g.

###`test_sync`
```ruby
on_entry %{
  var info = {
    foo: "bar"
  }
  Request("test", "test_sync", info);
}

#This is called immediately
on "test_sync_res", %{
  test_sync_res_params = params; //params will equal {foo: "bar"}
}
```

###`test_async`
```ruby
on_entry %{
  var info = {
    foo: "bar"
  }
  Request("test", "test_async", info);
}

#This is called after the next int_event comes through via int_event_defer
on "test_async_res", %{
  test_async_res_params = params; //params will equal {foo: "bar"}
}
```

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
flok-0.0.105 docs/services/test.md
flok-0.0.103 docs/services/test.md
flok-0.0.102 docs/services/test.md
flok-0.0.101 docs/services/test.md
flok-0.0.100 docs/services/test.md
flok-0.0.99 docs/services/test.md
flok-0.0.98 docs/services/test.md
flok-0.0.97 docs/services/test.md
flok-0.0.96 docs/services/test.md
flok-0.0.95 docs/services/test.md
flok-0.0.94 docs/services/test.md
flok-0.0.93 docs/services/test.md
flok-0.0.92 docs/services/test.md
flok-0.0.91 docs/services/test.md
flok-0.0.90 docs/services/test.md
flok-0.0.89 docs/services/test.md
flok-0.0.88 docs/services/test.md
flok-0.0.87 docs/services/test.md
flok-0.0.86 docs/services/test.md
flok-0.0.85 docs/services/test.md