cwmiller / broadworks-connector

Simple library for connecting to BroadWorks OCI-P API
MIT License
8 stars 5 forks source link

Maintain Session #58

Closed TwinMist closed 3 years ago

TwinMist commented 3 years ago

Just wonders what would be the best way to maintain and check for a valid session? thanks

cwmiller commented 3 years ago

I'm not really sure. I typically don't keep the instance of OcipClient alive very long, and with each new instance of it creates a new session. I may add a logout method to it that logs out of the session, and any command after that would create a new session.