Class enchant.telepathy.TelepathySense
Object for sending and receiving telepathy.
- Defined in: telepathy.enchant.js
- Extends enchant.EventTarget
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Object which stores channelers.
|
|
Object which stores EventSource.
|
|
The telepathy object which received lastly.
|
|
URL of the receive API.
|
|
URL of the send API.
|
Method Summary
Method Attributes | Method Name and Description |
---|---|
addChanneler(channel, target)
Adds objet as telepathy channeler.
|
|
close(channel)
Ends to receive the telepathy.
|
|
closeAll()
Closes all telepathy channels.
|
|
finalize()
Finalizes TelepathySense.
|
|
open(channel)
Begins to receive the telepathy.
|
|
removeChanneler(channel, target)
Removes objet from telepathy channeler.
|
|
send(channel, message)
Sends the telepathy.
|
- Methods borrowed from class enchant.EventTarget:
- addEventListener
- clearEventListener
- dispatchEvent
- on
- removeEventListener
Class Detail
enchant.telepathy.TelepathySense()
Field Detail
{Object}
channelers
Object which stores channelers.
{Object}
eventSources
Object which stores EventSource.
{enchant.telepathy.Telepathy}
lastTelepathy
The telepathy object which received lastly.
{String}
recvAPI
URL of the receive API.
{String}
sendAPI
URL of the send API.
Method Detail
-
addChanneler(channel, target)Adds objet as telepathy channeler.
- Parameters:
- {String} channel
- target channel.
- {enchant.EventTarget} target
- target object.
-
close(channel)Ends to receive the telepathy.
- Parameters:
- {String} channel
- target channel.
-
closeAll()Closes all telepathy channels.
-
finalize()Finalizes TelepathySense.
-
open(channel)Begins to receive the telepathy.
- Parameters:
- {String} channel
- target channel.
-
removeChanneler(channel, target)Removes objet from telepathy channeler.
- Parameters:
- {String} channel
- target channel.
- {enchant.EventTarget} target
- target object.
-
send(channel, message)Sends the telepathy.
- Parameters:
- {String} channel
- target channel.
- {*} message
- data to send.