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.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
17 views

Any suggestion why this might be happening? [closed]

So I was experimenting with Ably using next.js 13.4.19 app directory and I could make it work in the local environment but in my deployed link it does not work. I tried to follow the error messages ...
Shreyas Chaliha aka Trace's user avatar
0 votes
1 answer
22 views

What are Ably Presence action numbers?

So I'm pushing Ably Presence events to a lambda function via Ably Firehouse. Logging the event on lambda, I see the presence actions are represented by numbers and not action names (leave, enter...) ...
Justice Mba's user avatar
0 votes
1 answer
58 views

Has anyone been able to use the new Experimental ably-js react hooks?

Problem: I encounter a "Unhandled Promise Rejection: Error: Connection closed" every time I attempt to use useChannel or usePresence. This is being done in a client component (app router), ...
Atridad Lahiji's user avatar
1 vote
1 answer
35 views

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/...
user3747260's user avatar
0 votes
1 answer
17 views

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 { ...
Noam's user avatar
  • 4,522
0 votes
1 answer
61 views

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 ...
Omar Montero's user avatar
1 vote
1 answer
125 views

Issue with authorization with Ably when trying to run Pinecone Demo chat app

I have been trying to get the Pinecone Demo chat app in their own website up and running.Link to it. I have put all the keys properly in the .env file and the UI seems to pop up correctly. However, it ...
AaravS's user avatar
  • 31
0 votes
0 answers
34 views

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 ...
Chris's user avatar
  • 1
1 vote
1 answer
646 views

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 ...
Tarequl Islam's user avatar
0 votes
1 answer
111 views

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("...
Ray's user avatar
  • 1,598
0 votes
1 answer
277 views

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. ...
Getaye's user avatar
  • 1
1 vote
1 answer
229 views

How to fix this "Unable to publish push notification; err = Published push notification to not push-enabled channel" with ably

I'm trying to use push notifications with ably in a flutter app but I'm getting this error please help me solve it
livlic AHETO's user avatar
0 votes
1 answer
128 views

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 : {'...
stackunderflow's user avatar
1 vote
0 answers
117 views

Laravel Echo automatically disconnects first connected user

I'm building a real-time chat using Laravel, Ably (Pusher) and Vue 3 and a presence channel. Everything works great, but for some reason the first connected client gets disconnected automatically ...
Gelu Ungur's user avatar
1 vote
1 answer
315 views

Trouble getting paho-mqtt (Python 3.9) to connect to Ably

First attempt to get paho-mqtt working with Ably. I'm sort of translating the following NodeJS example (which works for me) to Python. In the Python version, I don't seem to get any CONNACK back from ...
Jonathan Shapiro's user avatar
2 votes
1 answer
706 views

Syncing chat app message history with local cache

Consider a mobile chat app with MongoDB for chat message storage and https://ably.com/ as the pub sub broker. When a new user joins a chat room, or an existing user re-install their app, old messages ...
Mikael Lirbank's user avatar
0 votes
1 answer
488 views

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 ...
niCC_S's user avatar
  • 11
0 votes
0 answers
159 views

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 ...
niCC_S's user avatar
  • 11
3 votes
1 answer
613 views

Ably One-to-One Messaging

So I was trying to implement one-to-one messaging in NextJS with Ably but I couldn't get it done. I'm stuck between making channels for interactions (e.g. private:<user_1>-<user_2>) and ...
anomOG's user avatar
  • 33
1 vote
1 answer
519 views

Best Way To Globally Instantiate Ably Connection in React Native

I am building a React Native game with multiple screens. I am trying to instantiate Ably one time and use it throughout the application without having to call new Ably('api-key') on every screen, as ...
Wasik's user avatar
  • 35
0 votes
1 answer
279 views

Difference between ably realtime Channel.off method and Channel.unsubscribe

The Ably realtime javascript documentation here does not describe what the Channel.off method does. I'm wondering what that method does and how it's different than Channel.unsubscribe
camtastic's user avatar
  • 955
1 vote
1 answer
105 views

Communication from ably to MQTT

I wanted to know if there is an example to do it the other way round, that is from Ably to MQTT. I need this for my IoT application where I am trying to send an instruction to change the sensor value ...
Dave's user avatar
  • 11
1 vote
2 answers
624 views

Apache Kafka topic per application

I'm trying to build a PaaS like Ably where I provide users with a easy to use pub/sub system. The thing is that I'm planning to use Kafka but I don't know if it's the right fit for this. Each user can ...
Gabriel Mendez's user avatar
0 votes
1 answer
530 views

How to get list of connected users?

I have many channels, and I need to get statistic, how many users connecter to every channel and their identity. How can I get a list of connected users to every channel?
user12253469's user avatar
0 votes
1 answer
118 views

Best way of setting up integration tests for ably

I'm considering migration from pusher to ably. In my current setup, I'm using https://github.com/tristandunn/pusher-fake as a solution to run integration tests. In short, this is running local server, ...
Piotr Pawlik's user avatar
2 votes
3 answers
225 views

How to revoke a token in ably.io?

I want to have custom permissions for different channels for security purposes. In the documentation and examples, shortlived tokens are used. I don't want to spam the auth server every minute and don'...
Arp Lee's user avatar
  • 21
0 votes
1 answer
81 views

Ably Pub/Sub Realtime ILoggerSink LogEvent not working

I am using VB.NET with Ably .NET Realtime library version 1.2.1. I have a wrapper class setting up and managing Ably. The class implements ILoggerSink. It is setting up the channel as shown by ...
RJBreneman's user avatar
2 votes
1 answer
360 views

Vercel ably setup

I am new to vercel and I am trying to deploy an application which consist of chat feature. I am using ably.com as pub/sub chat feature. I am trying to use ably realtime for both publishing and ...
Ratnesh Soni's user avatar
1 vote
1 answer
221 views

Ably Subscribe and detecting jwplayer play status

Last time that I asked question here I acted like a prime noob and I hope this time I am a bit more on track and clear on my problem. So my issue: I have this player built in a PHP file and I call it ...
Frozenfar's user avatar
0 votes
1 answer
332 views

Using ably.io JWT with Angular

I'm trying to use ably.io with Angular and Azure Functions using the JWT way of authenticating since it's secure, but I'm having issues with configuring the angular side of it. The use case is for a ...
user6680's user avatar
0 votes
1 answer
392 views

ably webrtc group call Not working in Javascript and simple peer

we are working on making a simple group call web app using Ably and simple peer. By following the step by step tutorial, the 1-to-1 call works (that too has issues when using on public ip but that is ...
Abdul Ali's user avatar
  • 1,905
1 vote
1 answer
152 views

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. ...
user1480192's user avatar
0 votes
2 answers
337 views

Need help using MQTT with Ably from the Browser

I am using the paho-mqtt library in a SPA running in Chrome and calling the connect with the example code and am getting two alternating errors var client = mqtt.connect('mqtts:mqtt.ably.io', { ...
Al Joslin's user avatar
  • 765
0 votes
1 answer
236 views

Getting started with ABLY

I added https://github.com/ably/ably-js to my project so that I can use typescript. Currently my document adds the currentBid information to the mongodb document with the corresponding auctionId. I'm ...
user6680's user avatar
0 votes
1 answer
126 views

Can ably.io (AMQP|MQTT) queue clients authenticate using tokens?

I'd like to allow untrusted clients to subscribe to MQTT and AMQP queues on ably.io. Can I use one of the token authentication schemes described in https://www.ably.io/documentation/core-features/...
wwerner's user avatar
  • 4,247
1 vote
1 answer
702 views

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 ...
pacmaninbw's user avatar
1 vote
1 answer
853 views

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 ...
bhrzk's user avatar
  • 43
1 vote
1 answer
271 views

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 ...
Bom Tomdabil's user avatar
2 votes
1 answer
266 views

How to set up an e-commerce messaging solution using ably.io

I have an e-commerce website and I want to implement a messaging solution between my clients, using ably.io. I am new to ably.io and also to pub/sub message pattern and need some advice to put me on ...
Hooman Bahreini's user avatar
6 votes
2 answers
464 views

Advice on pubsub topic division based on geohashes for ably websocket connection service

My question concerns the following use case: Use case actors User A: The user who sets a broadcast region and views stream with live posts. User B: The first user who sends a broadcast message ...
html_programmer's user avatar
0 votes
1 answer
412 views

ConnectionManager.onChannelMessage() received message with different connectionSerial, but same message id as a previous; discarding

Using Ably Realtime for a web based reservation system. I'm getting a few errors in the js console consistently, though everything is working properly. Basically, there is a date selector and when a ...
Jason Galuten's user avatar
0 votes
2 answers
70 views

Casting from Any to anything else fails

API gives me back a variable that has type Any. It looks like this when I print it. { "sender" : "Kira", "created" : "08.05.2018", "text" : "Cncncm" } I tried to use SwiftyJSON to cast it like ...
Kira's user avatar
  • 1,585
0 votes
1 answer
408 views

Can I attach and subscribe to channels using wildcards?

When using Ably for Pub/Sub over WebSockets, can I use wildcards to subscribe to multiple channels like so var channel = ably.channels.get('foo:*') channel.attach() (disclaimer: I am a developer ...
Srushtika Neelakantam's user avatar
0 votes
1 answer
105 views

How can you restrict which channels a client can access?

I'm using Ably's Realtime library to implement Pub/Sub over websockets. However, is there a way to restrict the channels that my client can access? (disclaimer: I am a developer advocate for Ably, ...
Srushtika Neelakantam's user avatar
0 votes
1 answer
89 views

Are messages sent to and received from Ably sent securely using TLS?

Using Ably's Node.js SDK to implement Push Notifications in my app. Are messages sent to and received from Ably sent securely using TLS? (disclaimer: I am a developer advocate for Ably, and posting ...
Srushtika Neelakantam's user avatar
0 votes
1 answer
178 views

If I need to whitelist Ably's servers from a firewall, which ports, IPs and/or domains should I add?

I'm using Ably to implement Pub/Sub over websockets. If I need to whitelist Ably's servers from a firewall, which ports, IPs and/or domains should I add? (disclaimer: I am a developer advocate for ...
Srushtika Neelakantam's user avatar
1 vote
1 answer
936 views

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 ...
Srushtika Neelakantam's user avatar
-1 votes
1 answer
755 views

On Ably, I'm not receiving messages, how do I debug that?

I'm using Ably to implement Pub/Sub in my application but I'm getting no errors but at the same time I'm not receiving any published messages. I'm not sure what's wrong. Help appreciated. Here's my ...
Srushtika Neelakantam's user avatar
-1 votes
1 answer
121 views

SSL certificate issues when communicating with Ably

I'm on a Windows system and when I try connecting to Ably, I'm getting the following errors(s): cURL error: SSL certificate problem: self signed certificate in certificate chain SSL_connect ...
Srushtika Neelakantam's user avatar
0 votes
1 answer
403 views

"java.lang.NoSuchFieldError: DEFAULT_PACKER_CONFIG" code when instantiating ably-java

I'm trying to use Ably's java SDK but when I'm trying to instantiate the library, I get the error above. Any idea why? (disclaimer: I am a developer advocate for Ably, and posting and self-answering ...
Srushtika Neelakantam's user avatar