Code Monkey home page Code Monkey logo

Comments (8)

Tapanila avatar Tapanila commented on May 23, 2024

This is really weird. If anybody has any thoughts how to implement this I would be really interested to talking you about this.

from sharpcaster.

hansmbakker avatar hansmbakker commented on May 23, 2024

Maybe not the cleanest way, but what happens if you stop sending ping pong messsages on the heartbeat channel?

Or if you just close the socket connection?

from sharpcaster.

Tapanila avatar Tapanila commented on May 23, 2024

I want to make it so after disconnection you can connect to a new chromecast or same one. So basically disposing the underlying socket, stopping the heartbeat and then creating them again or something like that

from sharpcaster.

hansmbakker avatar hansmbakker commented on May 23, 2024

Does the new connection need to be done from the same chromecastclient object? I think it is also possible just to create a new instance and optionally to implement idisposable in chromecastclient? (Just looking at the different options)

from sharpcaster.

Tapanila avatar Tapanila commented on May 23, 2024

Yep. But then the events are bit tricky. Since the event handlers are hooked into the client and if recreated you loose them.

But I think that might be the best way to go

from sharpcaster.

ovesennet avatar ovesennet commented on May 23, 2024

Any more progress on this? I try to use SharpCaster, but without any way to disconnect and reconnect, it's pretty useless for my scenario.

from sharpcaster.

Tapanila avatar Tapanila commented on May 23, 2024

I got pretty far but started doing other stuff. I will take a look at this on the coming weekend, will post here the status on Sunday.

from sharpcaster.

Tapanila avatar Tapanila commented on May 23, 2024

This is now supported on dev branch.

Might take a while for all of it to be pushed to master and nuget.

from sharpcaster.

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.