Free for up to 20 concurrent users and 100,000 daily events
curl -H "Content-Type: application/json" \
-X POST \
-d 'Hello from Scaledrone' \
https://api2.scaledrone.com/KtJ2qzn3CF3svSFe/notifications/publish
const drone = new Scaledrone('CHANNEL_ID'); drone.on('open', error => { drone.publish({ room: 'notifications', message: 'Hello from JavaScript!' }); });
import Scaledrone scaledrone = Scaledrone(channelID: "your-channel-id") scaledrone.delegate = self scaledrone.connect() func scaledroneDidConnect(scaledrone: Scaledrone, error: NSError?) { scaledrone.publish(message: "Hello from Swift", room: "notifications") }
final Scaledrone drone = new Scaledrone("CHANNEL_ID"); drone.connect(new Listener() { @Override public void onOpen() { drone.publish("notifications", myObject); } }
const Scaledrone = require('scaledrone-node-push'); const sd = new ScaleDrone({ channelId: 'channel_id', secretKey: 'secret_key' }); sd.publish('notifications', {foo: 'bar'});
import "github.com/ScaleDrone/scaledrone-go" func main() { client := scaledrone.NewBasicAuthClient("channel_id", "secret_key") _ = client.Publish([]byte("Hello Go"), "notifications") }
require 'scaledrone' sd = ScaleDrone.new({ channel_id: 'channel_id', secret_key: 'secret_key' }) sd.publish({foo: 'bar'}, 'notifications')
from scaledrone import ScaleDrone sd = ScaleDrone('channel_id', 'secret_key') sd.publish('notifications', {'foo': 'bar'})
$auth = array( 'channel_id' => 'channel_id', 'secret_key' => 'secret_key' ); $sd = new ScaleDrone\Client($auth); $message = ['foo' => 'bar']; $sd->publish('notifications', $message);
curl -H "Content-Type: application/json" \ -X POST \ -d '{"message": "Hello from ScaleDrone"}' \ https://api2.scaledrone.com/KtJ2qzn3CF3svSFe/notifications/publish
const drone = new Scaledrone('CHANNEL_ID'); drone.on('open', error => { const room = drone.subscribe('notifications'); room.on('data', message => { console.log('Received message', message); }); });
import Scaledrone func scaledroneDidConnect(scaledrone: Scaledrone, error: NSError?) { let room = scaledrone.subscribe(roomName: "notifications") room.delegate = self } func scaledroneRoomDidReceiveMessage(room: ScaledroneRoom, message: String) { print(message) }
final Scaledrone drone = new Scaledrone("CHANNEL_ID"); drone.connect(new Listener() { @Override public void onOpen() { drone.subscribe("myroom", new RoomListener() { @Override public void onMessage(Room room, JsonNode message) { System.out.println("Message: " + message.asText()); } //... } } }
const Scaledrone = require('scaledrone-node'); const drone = new Scaledrone('CHANNEL_ID'); drone.on('open', error => { const room = drone.subscribe('notifications'); room.on('data', message => { console.log('Received message', message); }); });