GithubHelp home page GithubHelp logo

Comments (9)

rolandoislas avatar rolandoislas commented on June 12, 2024 1

This is meant to be a configuration file specific to the app utilizing the library (i.e. bright_web_socket.json should be in the main application's package root). This allows the logging level to be configured without modification to the library itself.

from brightwebsocket.

lkrocek avatar lkrocek commented on June 12, 2024

I understand, but if I want to write ComponentLibrary I cannot use readAsciiFile("pkg:/bright_web_socket.json") because pkg:/ is not a path of my ComponentLibrary, sadly it means I cannot use any I/O ops in brightScript of my ComponentLibrary.

I would like write libs which could be used in any application and will independent.

from brightwebsocket.

lkrocek avatar lkrocek commented on June 12, 2024

At least it could be working with both cases, if config given as field don't lookup for file ...

from brightwebsocket.

cdthompson avatar cdthompson commented on June 12, 2024

@lkrocek you should be able to s/pkg/libpkg/ and have it working, i believe.

from brightwebsocket.

lkrocek avatar lkrocek commented on June 12, 2024

this will not help even libpkg will be working, because the address is apart of this library and I have to still modify the address in this lib. I would like have an original library without modification inside.

from brightwebsocket.

rolandoislas avatar rolandoislas commented on June 12, 2024

I am unclear on the request. Are you asking for an exposed method of changing the settings handled by bright_web_socket.json (which only controls logging) at runtime?

from brightwebsocket.

lkrocek avatar lkrocek commented on June 12, 2024

Simply my request is about to possibility to change pkg:/bright_web_socket.json address or in best case to pass its data with same way as a programmer passing url of server, so via interface.

I can try to explain one more:

I believe to do not modify 3rd party libs as this one to keep it simple maintainable for updates etc.

So with this idea I cannot do any changes within lib including address as "pkg:/bright_web_socket.json", so this address must be unchanged, but in component lib it follows into package and not into lib package. So whoever will use my lib will require to own this file in his/her own app(s), but it's not required because this should be for my library usage and not final applications.

If you are not sure what I mean maybe it's simplest way to do your own Unsigned Component Library with usage of you awesome WebSocketClient component.

from brightwebsocket.

rolandoislas avatar rolandoislas commented on June 12, 2024

A new commit to the develop branch exposes the log_level field in WebSocketClient.xml. It can be set to one of the log level strings.

from brightwebsocket.

lkrocek avatar lkrocek commented on June 12, 2024

perfect it works.

from brightwebsocket.

Related Issues (6)

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.