Questions tagged [ably-realtime]

Ably is a scalable realtime pub/sub platform enabling communication between any internet enabled device across many open protocols and some proprietary protocols. Clients connect using HTTP, WebSockets, MQTT, AMQP, STOMP to name a few.

Ably is a realtime data delivery platform providing developers everything they need to create, deliver and manage complex realtime functionality. Ably solves the hardest parts of scaling and reliability so they don’t have to.

Ably is the only globally distributed pub/sub platform to provide websocket support and open protocol support, with low latencies (mean 65ms), guaranteed ordering, and continuity of service over unreliable networks.

Useful links:

Ably provides client libraries for the following platforms:

50 questions
1
vote
1 answer

Prevent multiple Ajax updates

We have a web calendar client which shows events in real time. Whenever there is an update on the server, we use Ably Realtime to notify the client that it needs to request updates from the server. The client then uses an Ajax call to get the…
user1480192
  • 665
  • 8
  • 23
1
vote
1 answer

Get Unknown error when connecting creating a connection using Ably.io

We have a use case where the user has not logged into the application yet and no authentication token has been created. The application needs to connect to the web server on a public channel to check for application updates. The connection fails.…
pacmaninbw
  • 439
  • 1
  • 10
  • 22
1
vote
1 answer

Recycle Ably realtime connections

I kinda came across a strange problem. In our application (based on React-native) we hosted 70 concurrent clients but the peak in the monitoring page showed 380 connections. I assume maybe clients exit and come back or reload the app somehow so…
bhrzk
  • 43
  • 6
1
vote
1 answer

Cannot add Gradle dependencies to my Codename One Project

I'm building a simple online app with Netbeans using Codename One, and I wanted to use Ably for internet communication, but I'm having trouble importing the Ably API. Ably's site tells me that I need to add the line compile 'io.ably:ably-java:1.0.0'…
Bom Tomdabil
  • 61
  • 1
  • 10
1
vote
1 answer

Is it secure to send the access_token as part of the websocket url query params?

While using webhooks to get notified about channel lifecycle events in Ably Realtime, is it secure to send the access_token as part of the websocket url query params? (disclaimer: I am a developer advocate for Ably, and posting and self-answering a…
0
votes
0 answers

Ably rate limiting clients

I need to give clients publishing capabilities in my application, but that creates an opportunity for malicious users to cause disruption. I see that Ably has revocable tokens (https://ably.com/docs/auth/revocation) and some imposed limits…
user3747260
  • 465
  • 1
  • 5
  • 14
0
votes
1 answer

error 40104, 40105 when using ably with next js app router on vercel

I'm using ably and have created a route to generate a token on next.js server using the following code, based on the next example on ably's web site // src/app/api/getAblyToken/route.ts import { NextResponse } from "next/server"; import ably from…
Noam
  • 4,472
  • 5
  • 30
  • 47
0
votes
1 answer

Error trying to use ably Class "Ably\AblyRest" not found

Ok so i been following the tutorial for ably Building a realtime chat app with Laravel using WebSockets but when i tried to create a messageEvent using the command: php artisan make:event PublicMessageEvent this is what it shows: Class…
0
votes
0 answers

Using getIt to access Ably stream and Graph up data doesn't work unless its the home screen

I have an MQTT sensor sending messages to the Ably platform (messaging platform) and then I am trying to subscribe to that channel and recieve the data to the app... My issue (i think) is in the getIt package as if i start my app on the dashboard…
Chris
  • 1
0
votes
1 answer

Serverless function crashes with Runtime exited error: exit status 1 on Vercel deployment

I am making a website using whatsapp-web.js package in node.js. Everything is working fine in localhost. Here I have used ably (Realtime server) But when I want to deploy website on vercel, it is not working. I get error like Serverless function…
0
votes
1 answer

Update presence member status causing presence member list to display updated user as only member

In Ably, Im using Ably React hook In the documentation, there is a way to update member status when monitoring what users have entered a room. const [presenceData, updateStatus] = usePresence("your-channel-name", "initial state"); // The…
Ray
  • 1,548
  • 2
  • 11
  • 18
0
votes
1 answer

Using the ably flutter package, how can I subscribe to and listen to an event in Laravel and Flutter?

I'm developing a chat application using Laravel and flutter. I'm using ably_flutter package to make it realtime. The channel is created successfully but it's faild to listen an event or a message. final clientOptions = ably.ClientOptions( …
Getaye
  • 1
  • 2
0
votes
1 answer

Flutter - Ably - java.util.HashMap cannot be cast to io.ably.lib.types.Param

This plugin ... https://pub.dev/packages/ably_flutter ... asked me to do this ... ably.ClientOptions options = ably.ClientOptions( clientId : '...', authUrl : '...', authHeaders : {'Authorization' : '...'}, ); ably.Realtime realtime = await…
stackunderflow
  • 1,492
  • 1
  • 23
  • 53
0
votes
1 answer

ES6 import statements not working on web server

My imports work fine within my javascript file, but they do not work when I start the webserver. I can access the functions of the imported module as expected, but the import statement itself fails when I boot up the nodejs server. I added the…
niCC_S
  • 11
  • 1
0
votes
0 answers

How to import JS modules in client sided JS files?

Sorry if the question wording is unclear. When I try to use the Ably module in my client-side js file, the object doesn't exist. I thought that javascript files within the same HTML file all had access to each other, so my client-side JS file would…
niCC_S
  • 11
  • 1