Preparing search index...
The search index is not available
actionhero
actionhero
chatRoom
broadcast
Function broadcast
broadcast
(
connection
:
Partial
<
Connection
>
, room
:
string
, message
:
any
)
:
Promise
<
void
>
Send a message to all clients connected to this room
connection: - {} send to every connections - should either be a real client you are emulating (found in api.connections) - a mock
room is the string name of an already-existing room
message can be anything: string, json, object, etc
Parameters
connection:
Partial
<
Connection
>
room:
string
message:
any
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
actionhero
action
cache
chat
Room
redis
route
spec
Helper
task
Chat
Middleware
Chat
Pub
Sub
Message
add
add
Member
add
Middleware
broadcast
client
destroy
exists
generate
Member
Details
list
remove
Member
room
Status
sanitize
Member
Details
Generated using
TypeDoc
Send a message to all clients connected to this room