Core\Topic
Sends values between WebSocket connections and event streams. A connection joins a topic by name with subscribe. Any script can send a value to everyone who joined with publish, and the value arrives at their next receive().
Members
3 members.
| Member | Signature |
|---|---|
subscribe | subscribe(string $topic): void |
publish | publish(string $topic, mixed $value): uint |
unsubscribe | unsubscribe(string $topic): void |
Example apps
These complete apps use this class. You can download and run each one.
