CORAL WIKI

HttpBroadcastActor

The HttpBroadcastActor (HTTP server) is a Coral Actor that passes through HTTP JSON requests. It is used to be able to directly send the incoming HTTP JSON requests to multiple actors by registering the HttpBroadcastActor as the trigger source of these actors.

Creating a HttpBroadcastActor

The creation JSON of the HttpBroadcastActor (see Coral Actor) has "type": "httpbroadcast". This is the only field in the creating JSON for this actor. There is no params field.

Example

{
  "data": {
     "type": "actors",
     "attributes": {
       "type": "httpbroadcast"
     }
  }
}

Trigger/Emit

The HttpBroadcastActor emits what is supplied to the trigger (passthrough).

State

The HttpBroadcastActor does not keep a state

Collect

The HttpServerActor does not collect state from other actors.

Timer

The HttpServerActor does not provide timer actions.