new Streaming(conn)
Streaming API class
Parameters:
Name |
Type |
Description |
conn |
Connection
|
Connection object |
- Source:
Extends
Classes
- Channel
- Topic
Methods
Get Channel for Id
Parameters:
Name |
Type |
Description |
channelId |
String
|
Id of StreamingChannel object |
- Source:
Returns:
-
Type
-
Streaming~Channel
subscribe(name, listener) → {Subscription}
Subscribe topic/channel
Parameters:
- Source:
Returns:
- Faye subscription object
-
Type
-
Subscription
Get named topic
Parameters:
Name |
Type |
Description |
name |
String
|
Topic name |
- Source:
Returns:
-
Type
-
Streaming~Topic
unsubscribe(name, listener) → {Streaming}
Unsubscribe topic
Parameters:
- Source:
Returns:
-
Type
-
Streaming
Type Definitions
StreamingMessage
Type:
Properties:
Name |
Type |
Description |
event |
Object
|
Properties
Name |
Type |
Description |
type |
Object
|
Event type |
|
sobject |
Record
|
Record information |
- Source: