> For the complete documentation index, see [llms.txt](https://violetxf.gitbook.io/messengerbot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://violetxf.gitbook.io/messengerbot/api2/broadcast.md).

# Broadcast

사용자 지정 Broadcast를 지원합니다. (안드로이드의 Broadcast와는 관련이 없습니다.)

| Public methods |                                                                                                                                                      |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| void           | <p><strong>send(broadcastName: String, value: Any)</strong></p><p>모든 봇을 대상으로 해당 브로드캐스트를 방송합니다. <code>value</code>는 <code>task</code>의 인자로 주어집니다.</p> |
| void           | <p><strong>register(broadcastName: String, task: Function)</strong></p><p>해당 브로드캐스트에 리스너를 등록합니다.</p>                                                 |
| void           | <p><strong>unregister(broadcastName: String, task: Function)</strong></p><p>해당 브로드캐스트에 등록한 리스너를 해제합니다.</p>                                           |
