filimo/ReaderTranslator

Sync bookmarks between macOS and iOS

filimo opened this issue · 0 comments

  • Start/restart PeerListener in ReaderTranslatorMac
  • Show the available services in ReaderTranslatorPlayer
  • Show connection status in ReaderTranslatorMac
  • Show connection status in ReaderTranslatorPlayer
  • Send bookmarks from macOS to mobile devices
  • Add unit tests
  • Sync bookmarks between macOS and mobile apps

https://www.planttext.com "Sequence diagrams"-> Messages

@startuml

title "Sync bookmarks - Sequence Diagram"

actor macOS
control NWListener
control NWConnection_macOS

control NWConnection_iOS
control NWBrowser
actor iOS

macOS -> NWListener: Start the host
iOS -> NWBrowser: Start search running hosts
NWBrowser <-> NWListener: Scan running hosts
NWBrowser -> iOS: Result running hosts
iOS -> NWConnection_iOS: Start connection with the host
NWConnection_iOS -> NWListener: Receive newConnectionHandler
NWListener -> NWConnection_macOS: Start connection with the client
NWConnection_macOS <-> NWConnection_iOS: Connection .ready
NWConnection_iOS -> NWConnection_macOS: Send message .getBookmarks
NWConnection_macOS -> NWConnection_iOS: Send message .sendBookmarks
NWConnection_iOS -> iOS: onSendBookmarks
iOS -> NWConnection_iOS: Send bookmarks to the host
NWConnection_iOS -> NWConnection_macOS: Send message .sendBookmarks
NWConnection_macOS -> macOS: onSendBookmarks
macOS -> NWConnection_macOS: Close the connection
NWConnection_macOS -> NWConnection_iOS: Send message .closeConnection
NWConnection_iOS -> iOS: onCloseConnection

@enduml