Make the session status more failsafe by changing ow_session:status/2 to specific setter functions for setting connected/disconnected state. This will avoid having arbitrary states in the session field that might cause things to blow up weirdly.
Start adding documentation for Sessions.
Made a bunch of cosmetic changes and thought a bit about what kind of information can be accessed about a session during 'part'.
Make the session status more failsafe by changing
ow_session:status/2
to specific setter functions for setting connected/disconnected state. This will avoid having arbitrary states in the session field that might cause things to blow up weirdly.Start adding documentation for Sessions.
Made a bunch of cosmetic changes and thought a bit about what kind of information can be accessed about a session during 'part'.