Comments (9)
Hi @HotEmu,
Are you using Zello Consumer or Zello Work?
So far, I noticed a property listen_only
In your logon packet, so you should get an error listen only connection
in response on the start_stream
command, so I wonder if you successfully sent an audio message to the channel.
from zello-channel-api.
Thank you for the reply @ihorserba I'm flagging listen_only because at this point I just want to listen to messages from a channel.
I'm using the consumer account for this.
I've been playing with configs and noticed a forked repo where someone just commented out a check for refresh_token. After all I'm also getting "success" response, just no token.
What's confusing is that once a connection drops (it looks like it drops within 1 to 10 seconds if there are no messages to listen to). Ping/ponging the server doesn't help. I thought it was the token problem but looks like a different problem. I have to completely end the process for the websocket to cconnect again.
from zello-channel-api.
Actually I'll correct what I said. Upon a dropped connection to wss://zello.io/ws the connection closes (websocket gets "close" event). I then attempt to reconnect (tried with time out and without). I send the "logon" packet again (with all the credentials and the auth token (tried dev token and production generated token)). The connection is established, I get "open" event from websocket, but upon sending the "logon" packet as described above...nothing happens, no error, no response, as if Zello was ignoring it. I then have to kill the app and try again. I tried ws.terminate(), I tried completely clearing the websocket.
from zello-channel-api.
Hi all.
I haven't checked my ts-zello
library for some time, and now discovered that it's stopped working. So I compared docs changes to reveal that some things have really changed. I congratulate you guys with this progress.
For those interested what has changed:
fa3d161...b614301
I confirm that server responds without refresh_token
defined. So it's definitely a bug, either in API or in the docs.
So what is the correct behavior now?
@ihorserba, folks?
from zello-channel-api.
I'm experiencing exactly the same problem. No refresh token is received and audio stream drops with 1 to 10 seconds.
from zello-channel-api.
audio stream drops with 1 to 10 seconds.
If you experience this please double check that you've implemented WebSocket connection keep-alive. If you still experience the issue please include a minimal code example that allows to recreate it.
from zello-channel-api.
audio stream drops with 1 to 10 seconds.
If you experience this please double check that you've implemented WebSocket connection keep-alive. If you still experience the issue please include a minimal code example that allows to recreate it.
ws.send(JSON.stringify({ command: "logon", auth_token: token, username: username, password: password, channel: channel, }));
The response is missing a refresh token:
{"success":true,"seq":1}
And only the Sample Developer Token is accepted on auth_token.
It is interesting to note that the code works normally on the first execution of the day. Every other time the final part of the audio is cut off.
from zello-channel-api.
We have found the root cause and fixed it.
A refresh_token
is sent in response to the successful logon
command.
from zello-channel-api.
from zello-channel-api.
Related Issues (20)
- password
- receiving audi from a particular user in Channel HOT 4
- Timeout Error while receiving audio from another user in the channel HOT 2
- Need some help in decoding the binary audio stream HOT 2
- Need help with decoding the incoming audio HOT 2
- Embedding Zello on a Website HOT 1
- Clean workflow to stop OutgoingMessage
- Zello Channel API - Embedded Device HOT 4
- support HOT 1
- Windows/Android non interoperabilty with Channel API HOT 4
- No locations or messages showing on SDK HOT 1
- Support for emergency alerts
- A
- Audio Upload Interrupted HOT 2
- Is dveloper option no longer available for consumer non paid accounts? HOT 4
- Android SDK not working on Targeting S+ android version
- How can I receive audio from channels?
- on_stream_start
- Implementations not work
- Reset password send recover not anymore HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zello-channel-api.