Search
Preparing search index...
The search index is not available
Natuna Framework - v1.5.0
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Natuna Framework - v1.5.0
client/events/shared
SharedEvent
Class SharedEvent
Hierarchy
EventBase
SharedEvent
Index
Methods
emit
listen
Methods
emit
emit
<
T
>
(
name
:
string
|
string
[]
, args
?:
NoFunction
<
T
>
[]
)
:
Promise
<
any
>
description
Emit an event from Client to Server
Type parameters
T
Parameters
name:
string
|
string
[]
Optional
args:
NoFunction
<
T
>
[]
Returns
Promise
<
any
>
listen
listen
(
name
:
string
|
string
[]
, handler
:
(
...
args
:
any
)
=>
any
)
:
number
[]
description
Listen from a Server event
Parameters
name:
string
|
string
[]
handler:
(
...
args
:
any
)
=>
any
(
...
args
:
any
)
:
any
Parameters
Rest
...
args:
any
Returns
any
Returns
number
[]
🔗 Navigations
🏠 Home
🤝 Discord Server
⛺ Client Functions
💻 Server Functions
📦 All Module List
📚 Documentations
💪 Getting Started
🔧 Building Files
🤵 Code of Conduct
🎁 Contributing to The Project
Shared
Event
emit
listen
Generated using
TypeDoc
Emit an event from Client to Server