Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    DNAofCrypto
    @DNAofCrypto_twitter

    @DNAofCrypto_twitter hello, Centrifugo is not a framework to build chats - it's a generic purpose messaging library, so functions like you described can be only implemented by developer on top of available messaging primitives

    Im sorry can you please show me what are the available messaging primitives? And can you please show me a better working example of dart/flutter-centrifugo example which is here: https://github.com/centrifugal/centrifuge-dart

    George Lambert
    @marchon
    Is there anyone here would like a paid internship with the ability to rapidly advance through a growing company who has a good understanding of Go and centrifugo? if so - please email me asap at marchon@gmail.com
    Maxim Stikharev
    @mstikharev
    Hi guys! i am using centrifuge now and i trying to reproduce server-server communication between my backend on python and centrifuge app for python-cent library communation. Where i can read about http server or any other?
    Maxim Stikharev
    @mstikharev
    @FZambia can you help me pls :)
    Alexander Emelin
    @FZambia
    Answered over email...
    longlonghands
    @longlonghands
    Hi, Can anyone name some big products and companies using this awesome server?
    curioustolearn
    @curioustolearn
    Hello. Sorry if this has been asked before, but the search did not turn up anything. If I decide to use Centrifugo, how can I establish communication from application frontend to application backend. Possibilities are: (1) Use ajax; (2) use websockets; (3) Allow application frontend client to publish on the channels they are subscribed to.
    The first two are straightforward, but don't use the communication already established with Centrifugo. If I use route 3, then does the application backend have to subscribe to every channel. From the docs, it appears that one client should not subscribe to too many different channels. Hence, what do you think is a good way to communicate from application frontend to application backend. I would appreciate hearing some suggestions. Many many thanks to @FZambia for creating this.
    Alexander Emelin
    @FZambia
    @curioustolearn hello, with Centrifugo option 3 is mostly for prototyping and demos. Option 1 is what I suggest to use if possible. It's also possible to publish over websocket connection using Publish or RPC proxy - this way data will be sent to app backend over ws, then transformed into HTTP request from Centrifugo to app backend
    curioustolearn
    @curioustolearn
    Thank you @FZambia. I can use ajax. In the case, just to understand correctly, Centrifugo is not involved in communication from my frontend clients to the server. It is only involved when my application backend pushes message to the frontend clients through API request to Centrifugo. Thanks again! I look forward to playing with this.
    Alexander Emelin
    @FZambia
    Correct, welcome :)
    curioustolearn
    @curioustolearn
    Hi @FZambia. When you get a chance, can you please comment on how a application backend can listen to join_leave messages? I understand that in configuration one has to set its value to true. But once set to true, how does the application backend listen to these events? Thank you.
    Alexander Emelin
    @FZambia
    Hello, the only way to listen join leave events is client protocol
    curioustolearn
    @curioustolearn
    Thank you.
    Johan Romero
    @johan149
    How a user can receive offline messages lie QoS when it comes online .how to configure that
    James Pearson
    @startoftext
    Hi, I am using centrifugo java client on android and whenever I try to connect to I get a message: "Close (3007) {"reason":"stale","reconnect":false}" Could anyone help me with why this might be happening? We also have an ios and web app that are using centrifugo and not having this problem.
    I have been proxying the web client and the java/android client to try to find a difference in what is being sent but I don't see a delta yet.
    Alexander Emelin
    @FZambia
    @startoftext hello, take a look at centrifugal/centrifuge-java#20
    James Pearson
    @startoftext
    @FZambia I looked at that and it looks like you attempted to fix it in version centrifugo-java:0.0.6.
    When I tried using 0.0.6 I get this error when building "Unsupported class file major version 60 gradle"
    From research it appears that you compiled icentrifugo-java:0.0.6 using java 16.
    I am trying to update my gradle version but no luck yet.
    Thank you for your help though.
    Alexander Emelin
    @FZambia
    @startoftext unfortunate... maybe I need to step back with JDK version...
    Paul
    @paulm17
    hi there. Is there any consideration to set a refreshInterval? I'm looking at the network tab and it's swamped with requests. Shouldn't I be able to set the initial expirey to 60 mins and then have a refreshInterval to 50 mins or handle it myself?
    I supposed I could set this myself in the onRefresh function...?
    Paul
    @paulm17
    Nm, resolved it in the onRefresh func.
    Paul
    @paulm17
    Actually my bad. I had seconds instead of minutes for the expiry for the token. doh.
    KabDeveloper
    @KabDeveloper
    @FZambia Hi ! Is there a way to subscribe for a public channel without JWT TOKEN for anonymous users/visitors
    Thanks !
    James Pearson
    @startoftext
    @FZambia Any advice on how I can debug the java client that keeps disconnecting? The only information I have is that I get a callback on onDisconnect and the event says "connection error". We have an ios app thats working with the same environment and I have been running a proxy to try to debug the difference but cant see anything useful.
    James Pearson
    @startoftext
    I resolved it. I guess I should not have been calling super() in some of the centrifuge callbacks.
    Alexander Emelin
    @FZambia
    If only I was a Java developer:) glad that problem solved :)
    Mohammed Ali Zubair
    @Alig1493

    Stumbled on an issue regarding centrifugo setup. I'm following the nginx setup by embedding centrifugo under my website (in this case localhost). I can access the admin panel via the url: localhost/centrifugo, however when i try to test the client from the python shell I get the error: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /centrifugo/api (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffffad9adeb8>: Failed to establish a new connection: [Errno 111] Connection refused'))

    Probably some configuration or understanding related issue but some direction would be welcome. Thanks.

    Mohammed Ali Zubair
    @Alig1493
    @FZambia
    Alexander Emelin
    @FZambia
    Hello, looks like sth with Nginx configuration - but hard to tell the exact reason
    Make sure you can call Centrifugo with CURL from your terminal - i.e. without using Python client
    Mohammed Ali Zubair
    @Alig1493
    yes i'm able to curl with it however i can't seem to establish connections with the python client.
    Alexander Emelin
    @FZambia
    Are you using Docker compose maybe?
    Mohammed Ali Zubair
    @Alig1493
    yes. currently using docker compose. I'm also trying to debug an issue where the centrifugo-js client is being unable to connect to a deployed centrifugo server from the local machine.
    I've used allowed_origins to whitelist the ip-addresses to allow the requests but the client is still getting disconnected upon requesting via websockets.
    Alexander Emelin
    @FZambia
    Since you are using docker-compose Centrifugo and your Python application run in different containers. This means you can not connect to Centrifugo using localhost. You should use a host which is available inside docker-compose created network. See https://docs.docker.com/compose/networking/
    Alexander Emelin
    @FZambia
    Going to schedule a meeting very soon to share some details about v3
    Mohammed Ali Zubair
    @Alig1493
    hey @FZambia. Sorry for not getting back sooner. I figured that out and using service names to connect to the centrifugo networks. I read the same resource you gave the link to. Everything's working fine as of now and I figured it was down to me not having enough knowledge. thanks for building this service it's been a great help!
    Alexander Emelin
    @FZambia

    Thursday, July 15 => Centrifugo v3 community call in Zoom.

    From 15-00 UTC till 17-00 UTC (for Moscow that's 18-00 till 20-00)
    https://zoom.us/j/99382360015?pwd=UEJtcldxZGlrOVh0ZWZtUm1aN1F1Zz09

    Serhii
    @tucocsa
    Hi there. I run centrifuge with publish proxy enabled. After that users cannot subscribe to user # channel. Is it normal behavior?
    Sorry. Problem solved xD
    Alexander Emelin
    @FZambia
    Quick reminder: we are starting in 2 hours: at 15-00 UTC, don't forget 😇
    venkatakrishnai
    @venkatakrishnai
    Hi All
    I am getting the below error, please anyone helps me with this.
    {"level":"info","client":"cacc801b-a75f-46aa-8c17-1f866bea986e","command":"id:2 method:SUBSCRIBE params:\"{\\\"channel\\\":\\\"$private1\\\",\\\"token\\\":\\\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjaGFubmVsIjoiJHByaXZhdGUxIiwiY2xpZW50IjoiY2FjYzgwMWItYTc1Zi00NmFhLThjMTctMWY4NjZiZWE5ODZlIn0.cmK-af_z8MDjUaW5eXGPjpwq-B5XoOrDNSRopCMP-CM\\\"}\" ","error":"103: permission denied","reply":"id:2 error:<code:103 message:\"permission denied\" > ","user":"7331ba28-e75c-489a-ab4b-d3210f20f762","time":"2021-07-20T10:47:11Z","message":"client command error"}
    Alexander Emelin
    @FZambia
    @venkatakrishnai there should be other logs nearby with error reason