Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@datafire/ably
Advanced tools
Client library for Ably REST API
npm install --save @datafire/ably
let ably = require('@datafire/ably').create({
username: "",
password: "",
bearerAuth: ""
});
.then(data => {
console.log(data);
});
The REST API specification for Ably.
Enumerate all active channels of the application
ably.getMetadataOfAllChannels({}, context)
object
integer
string
: Optionally limits the query to only those channels whose name starts with the given prefixstring
(values: value, id): optionally specifies whether to return just channel names (by=id) or ChannelDetails (by=value)string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeOutput schema unknown
Get metadata of a channel
ably.getMetadataOfChannel({
"channel_id": ""
}, context)
object
string
: The Channel's ID.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeGet message history for a channel
ably.getMessagesByChannel({
"channel_id": ""
}, context)
object
string
: The Channel's ID.string
integer
string
string
(values: forwards, backwards)string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likearray
Publish a message to the specified channel
ably.publishMessagesToChannel({
"channel_id": ""
}, context)
object
string
: The Channel's ID.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeobject
string
string
Get presence on a channel
ably.getPresenceOfChannel({
"channel_id": ""
}, context)
object
string
: The Channel's ID.string
string
integer
string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likearray
Get presence on a channel
ably.getPresenceHistoryOfChannel({
"channel_id": ""
}, context)
object
string
: The Channel's ID.string
integer
string
string
(values: forwards, backwards)string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likearray
This is the means by which clients obtain access tokens to use the service. You can see how to construct an Ably TokenRequest in the Ably TokenRequest spec documentation, although we recommend you use an Ably SDK rather to create a TokenRequest, as the construction of a TokenRequest is complex. The resulting token response object contains the token properties as defined in Ably TokenRequest spec. Authentication is not required if using a Signed TokenRequest.
ably.requestAccessToken({
"keyName": ""
}, context)
object
string
: The key name comprises of the app ID and key ID of an API key.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeDelete a device details object.
ably.deletePushDeviceDetails({}, context)
object
string
: Filter to restrict to subscriptions associated with that channel.string
: Must be set when clientId is empty, cannot be used with clientId.string
: Must be set when deviceId is empty, cannot be used with deviceId.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeOutput schema unknown
Get a list of push notification subscriptions to channels.
ably.getPushSubscriptionsOnChannels({}, context)
object
string
: Filter to restrict to subscriptions associated with that channel.string
: Optional filter to restrict to devices associated with that deviceId. Cannot be used with clientId.string
: Optional filter to restrict to devices associated with that clientId. Cannot be used with deviceId.integer
: The maximum number of records to return.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeSubscribe either a single device or all devices associated with a client ID to receive push notifications from messages sent to a channel.
ably.subscribePushDeviceToChannel({}, context)
object
string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeOutput schema unknown
Returns a paginated response of channel names.
ably.getChannelsWithPushSubscribers({}, context)
object
string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likearray
string
Unregisters devices. All their subscriptions for receiving push notifications through channels will also be deleted.
ably.unregisterAllPushDevices({}, context)
object
string
: Optional filter to restrict to devices associated with that deviceId. Cannot be used with clientId.string
: Optional filter to restrict to devices associated with that clientId. Cannot be used with deviceId.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeOutput schema unknown
List of device details of devices registed for push notifications.
ably.getRegisteredPushDevices({}, context)
object
string
: Optional filter to restrict to devices associated with that deviceId.string
: Optional filter to restrict to devices associated with that clientId.integer
: The maximum number of records to return.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeRegister a device’s details, including the information necessary to deliver push notifications to it. Requires "push-admin" capability.
ably.registerPushDevice({}, context)
object
string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeUnregisters a single device by its device ID. All its subscriptions for receiving push notifications through channels will also be deleted.
ably.unregisterPushDevice({
"device_id": ""
}, context)
object
string
: Device's ID.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeOutput schema unknown
Get the full details of a device.
ably.getPushDeviceDetails({
"device_id": ""
}, context)
object
string
: Device's ID.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeSpecific attributes of an existing registration can be updated. Only clientId, metadata and push.recipient are mutable.
ably.patchPushDeviceDetails({
"device_id": ""
}, context)
object
string
: Device's ID.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeDevice registrations can be upserted (the existing registration is replaced entirely) with a PUT operation. Only clientId, metadata and push.recipient are mutable.
ably.putPushDeviceDetails({
"device_id": ""
}, context)
object
string
: Device's ID.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeGets an updated device details object.
ably.updatePushDeviceDetails({
"device_id": ""
}, context)
object
string
: Device's ID.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeA convenience endpoint to deliver a push notification payload to a single device or set of devices identified by their client identifier.
ably.publishPushNotificationToDevices({}, context)
object
Output schema unknown
The Ably system can be queried to obtain usage statistics for a given application, and results are provided aggregated across all channels in use in the application in the specified period. Stats may be used to track usage against account quotas.
ably.getStats({}, context)
object
string
integer
string
string
(values: forwards, backwards)string
(values: minute, hour, day, month): Specifies the unit of aggregation in the returned results.string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likeobject
This returns the service time in milliseconds since the epoch.
ably.getTime({}, context)
object
string
: The version of the API you wish to use.string
(values: json, jsonp, msgpack, html): The response format you would likearray
integer
object
string
: The required name of the channel including any qualifier, if any.boolean
: In events relating to the activity of a channel in a specific region, this optionally identifies whether or not that region is responsible for global coordination of the channel.string
: In events relating to the activity of a channel in a specific region, this optionally identifies the region.object
: A ChannelStatus instance.
boolean
: A required boolean value indicating whether the channel that is the subject of the event is active. For events indicating regional activity of a channel this indicates activity in that region, not global activity.object
string
: Optional trusted client identifier for the device.string
: Secret value for the device.string
(values: phone, tablet, desktop, tv, watch, car, embedded): Form factor of the push device.string
: Unique identifier for the device generated by the device itself.object
: Optional metadata object for this device. The metadata for a device may only be set by clients with push-admin privileges and will be used more extensively in the future with smart notifications.string
(values: ios, android): Platform of the push device.string
(values: Active, Failing, Failed): the current state of the push device.object
: Returned error from failed REST.
integer
: Error code.string
: Link to help with error.string
: Message explaining the error's cause.string
: Server ID with which error was encountered.integer
: Status error code.object
: Message object.
string
: The client ID of the publisher of this message.string
: The connection ID of the publisher of this message.string
: The string encoded payload, with the encoding specified below.string
: This will typically be empty as all messages received from Ably are automatically decoded client-side using this value. However, if the message encoding cannot be processed, this attribute will contain the remaining transformations not applied to the data payload.string
: A Unique ID that can be specified by the publisher for idempotent publishing.string
: The event name, if provided.integer
: Timestamp when the message was received by the Ably, as milliseconds since the epoch.object
string
: Text below title on the expanded notification.string
: Platform-specific, used to group notifications together.string
: Platform-specific icon for the notification.string
: Platform-specific sound for the notification.string
: Title to display at the notification.object
: An Occupancy instance indicating the occupancy of a channel. For events indicating regional activity of a channel this indicates activity in that region, not global activity.
integer
: The number of connections that are authorised to enter members into the presence channel.integer
: The number of members currently entered into the presence channel.integer
: The number of connections that are authorised to subscribe to presence messages.integer
: The number of connections attached to the channel that are authorised to publish.integer
: The number of connections attached that are authorised to subscribe to messages.object
string
(values: ABSENT, PRESENT, ENTER, LEAVE, UPDATE): The event signified by a PresenceMessage.string
: The client ID of the publisher of this presence update.string
: The connection ID of the publisher of this presence update.string
: The presence update payload, if provided.string
: This will typically be empty as all presence updates received from Ably are automatically decoded client-side using this value. However, if the message encoding cannot be processed, this attribute will contain the remaining transformations not applied to the data payload.string
: Unique ID assigned by Ably to this presence update.integer
: Timestamp when the presence update was received by Ably, as milliseconds since the epoch.object
object
: Extends and overrides generic values when delivering via APNs. See examples
string
: Arbitrary key-value string-to-string payload.object
: Extends and overrides generic values when delivering via GCM/FCM. See examples
object
: Extends and overrides generic values when delivering via web. See examples
object
: Push recipient details for a device.
string
: Client ID of recipientstring
: Client ID of recipientstring
: when using APNs, specifies the required device token.string
: when using GCM or FCM, specifies the required registration token.string
(values: apns, fcm, gcm): Defines which push platform is being used.object
: The capabilities (i.e. a set of channel names/namespaces and, for each, a set of operations) which should be a subset of the set of capabilities associated with the key specified in keyName.string
: The client ID to be assosciated with the token. Can be set to * to allow for any client ID to be used.string
: Name of the key used for the TokenRequest. The keyName comprises of the app ID and key ID on an API Key.string
: An unquoted, un-escaped random string of at least 16 characters. Used to ensure the Ably TokenRequest cannot be reused.integer
: Time of creation of the Ably TokenRequest.string
: A signature, generated as an HMAC of each of the above components, using the key secret value.object
string
: Regular expression representation of the capabilities of the token.integer
: Timestamp of token expiration.integer
: Timestamp of token creation.string
: Name of the key used to create the tokenstring
: The Ably Token.object
object
: The capabilities (i.e. a set of channel names/namespaces and, for each, a set of operations) which should be a subset of the set of capabilities associated with the key specified in keyName.string
: The client ID to be assosciated with the token. Can be set to * to allow for any client ID to be used.string
: Name of the key used for the TokenRequest. The keyName comprises of the app ID and key ID on an API Key.string
: An unquoted, un-escaped random string of at least 16 characters. Used to ensure the Ably TokenRequest cannot be reused.integer
: Time of creation of the Ably TokenRequest.FAQs
DataFire integration for Ably REST API
The npm package @datafire/ably receives a total of 0 weekly downloads. As such, @datafire/ably popularity was classified as not popular.
We found that @datafire/ably demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.