Gun-Vue docs / chat/useChat / useChat
Function: useChat()
useChat(
current
):object
Defined in: src/chat/useChat.js:9
Parameters
current
string
= "general"
Returns
object
addChat()
addChat: (
title
) =>Promise
<void
>
Parameters
title
any
Returns
Promise
<void
>
chats
chats:
ComputedRef
<object
[]>
currentChat
currentChat:
Ref
<string
,string
>
messages
messages:
ComputedRef
<{}>
removeChat()
removeChat: (
title
) =>Promise
<void
>
Parameters
title
any
Returns
Promise
<void
>
send()
send: (
message
) =>void
Parameters
message
any
Returns
void
sorted
sorted:
ComputedRef
<any
[]>