GithubHelp home page GithubHelp logo

Comments (8)

postacik avatar postacik commented on May 26, 2024

The following is a sample of the formatted channel data used for subscribing:

jCbClCwMZg7eI2Z7Q0Amg4WVIJ9rspQj/test/device1/?last=10000&from=1557830446&until=1557830456

from go.

postacik avatar postacik commented on May 26, 2024

I was testing on my local emitter server. (emitter-windows-amd64.exe)

I repeated the same test on the emitter cloud and it worked as expected.

Can you tell me why this may happen?

from go.

postacik avatar postacik commented on May 26, 2024

I repeated the test with emitter-linux-amd64 on Ubuntu and it did not work as on Windows. :(

from go.

postacik avatar postacik commented on May 26, 2024

Last note: I am using the binaries I built from the latest master.

from go.

Florimond avatar Florimond commented on May 26, 2024

If Last works as expected then the storage is correctly configured.
Then I would say that it's a problem of UTC vs local time?

from go.

postacik avatar postacik commented on May 26, 2024

The same code is tested on cloud, local Windows and local Ubuntu.

Only the cloud works as expected.

I subscribe to a channel using last = 1000, from = now - 10 seconds and until = now.

On the cloud, no messages arrive after 10 seconds.

On the others, the non expired messages keep coming even after 10 seconds.

Can you try testing it on a local instance of emitter?

from go.

postacik avatar postacik commented on May 26, 2024

If Last works as expected then the storage is correctly configured.

I specified "provider": "ssd" in local emitter configuration and now it works.

Can you please put this information somewhere in readme?

from go.

kelindar avatar kelindar commented on May 26, 2024

This emitter-io/emitter#239 should fix range queries for the memory storage.

from go.

Related Issues (19)

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.