Methods
(function) data()
Method data
- Source:
(method) checkSendMessage()
Sends a message after checking the socket
- Source:
(method) checkSocket()
Checks the socket and reopens it if necessary
- Source:
(function) onclose()
Method onclose
- Source:
(function) onmessage()
Method onmessage
- Source:
(function) onopen()
Method onopen
- Source:
(method) closeSocket()
Closes the socket
- Source:
(method) reload()
Reloads the chat
- Source:
(method) sendMessage(message)
Sends a message
Parameters:
Name | Type | Description |
---|---|---|
message |
string | The message to send |
- Source:
(method) when(date) → {string}
Formats a date
Parameters:
Name | Type | Description |
---|---|---|
date |
Date | The date to format |
- Source:
Returns:
- The formatted date
- Type
- string
(function) mounted()
Mounted lifecycle method - initializes the component
- Source: