Git Product home page Git Product logo

Comments (9)

ihorserba avatar ihorserba commented on May 24, 2024

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.

HotEmu avatar HotEmu commented on May 24, 2024

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.

HotEmu avatar HotEmu commented on May 24, 2024

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.

OnkelTem avatar OnkelTem commented on May 24, 2024

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.

philliperosario avatar philliperosario commented on May 24, 2024

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.

agatx avatar agatx commented on May 24, 2024

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.

philliperosario avatar philliperosario commented on May 24, 2024

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.

ihorserba avatar ihorserba commented on May 24, 2024

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.

philliperosario avatar philliperosario commented on May 24, 2024

from zello-channel-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.