For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Function getGlobalDispatcher
-
Returns Dispatcher
The global dispatcher instance.
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
The global dispatcher instance.
This function is used to get the global dispatcher that is shared across all maps instances. It is used by the main thread to send messages to the workers, and by the workers to send messages back to the main thread. If you import a script into the worker and need to send a message to the workers to pass some parameters for example, you can use this function to get the global dispatcher and send a message to the workers.