Giter Club home page Giter Club logo

Comments (2)

hoytech avatar hoytech commented on June 4, 2024

Hi, thanks for your report!

Currently strfry is quite restrictive on what you can use a subscription ID. I can make it work with your string, but can I ask why you want to do this?

In my opinion, the best format for a subscription ID is just an increasing integer. For example, on the first subscription of the connection, use "1". On the second, use "2", etc. The counter can be reset on each connection (subscription IDs are local to a single connection).

Note in your case you are using a sub ID of 38 bytes. Every event that is sent echos this entire string back to you. For example, if you received 1000 events, this would be 38000 bytes of bandwidth wasted.

from strfry.

Memory-of-Snow avatar Memory-of-Snow commented on June 4, 2024

Thank you for your response.

Personally, I think it makes sense to use meaningful strings of characters for subscription IDs. In that case, I thought it would be easier to understand if we could use strings from each language.

from strfry.

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.