Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 22 2019 16:49
    oopets starred emadalam/atvjs
  • Jan 21 2019 02:56
  • Jan 17 2019 03:46
    solution-nine starred emadalam/atvjs
  • Jan 15 2019 17:37
    uisge-beatha starred emadalam/atvjs
  • Jan 06 2019 05:53
    Githubhed starred emadalam/atvjs
  • Dec 23 2018 11:19
    heathergraham414 starred emadalam/atvjs
  • Dec 17 2018 19:53
    hcheng2002cn opened #49
  • Dec 10 2018 12:03
    PaulSoho starred emadalam/atvjs
  • Nov 30 2018 08:10
    OlaAlsaker starred emadalam/atvjs
  • Nov 23 2018 19:48
    dmichaelglenn starred emadalam/atvjs
  • Nov 21 2018 10:28
    quochuy closed #48
  • Nov 21 2018 10:28
    quochuy commented #48
  • Nov 21 2018 05:44
    quochuy opened #48
  • Nov 21 2018 05:42
    quochuy commented #47
  • Nov 14 2018 16:53
    emadalam commented #47
  • Nov 14 2018 00:41
    quochuy commented #47
  • Nov 13 2018 19:46
    emadalam commented #47
  • Nov 13 2018 19:31
    emadalam labeled #47
  • Nov 13 2018 09:04
    quochuy opened #47
  • Nov 09 2018 03:45
    quochuy closed #46
Emad Alam
@emadalam

Detailed method/module level documentation have been added for the atvjs library. Now it's easier than ever to find supported features. Spread the love :heart:

https://emadalam.github.io/atvjs

Yasmine
@omguhh_twitter
:D
Rares Golea
@rgolea
Hey there!
Great framework! Just a little question I have: do you plan on adding types on https://github.com/DefinitelyTyped/DefinitelyTyped
?
I would like to use it with typescript
@emadalam
David Andrs
@andrsd
Hi! I am currently developing an app using atvjs. I have the "server" side running on my local router and then the client is just the app delegate generated by Xcode and running on apple TV. This works, but users would have to setup the server themselves and I do not think that's very friendly. So, I was thinking to bundle a web server into the client part so that server/client architecture would be transparent to users, they would just load the app and all would work. It this possible? If so, is there some example I could look into? Thanks!
David Andrs
@andrsd

@andrsd So my idea worked :-) I managed to bundle GCDSwebServer to the application, then added this code:

        let mainBundle = Bundle.main
        let folderPath = mainBundle.path(forResource: "dist", ofType: nil) ?? ""

        webServer!.addGETHandler(
            forBasePath: "/",
            directoryPath: folderPath,
            indexFilename: "",
            cacheAge: 3600,
            allowRangeRequests: true)

        webServer!.start(
            withPort: 9009,
            bonjourName: nil)

where dist is the path inside the bundle where the generated pages live (using webpack-server for that). Maybe somebody will find this useful.