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.84 docs/services/test.md
flok-0.0.83 docs/services/test.md
flok-0.0.82 docs/services/test.md
flok-0.0.81 docs/services/test.md
flok-0.0.80 docs/services/test.md
flok-0.0.79 docs/services/test.md
flok-0.0.78 docs/services/test.md
flok-0.0.77 docs/services/test.md
flok-0.0.76 docs/services/test.md
flok-0.0.75 docs/services/test.md
flok-0.0.74 docs/services/test.md