imairi / RIBsTreeViewerClient

Real Time viewing attached RIBs Tree on Browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Carthage compatible

RIBsTreeViewer

Real Time viewing attached RIBs Tree on Browser

Demo

Carthage

Cartfile

github "srea/RIBsTreeViewerClient"

Build Phase


Carthage CopyFrameworks (ONLY DEBUG)

 if [ ${CONFIGURATION%%-*} == "Debug" ]; then
    /usr/local/bin/carthage copy-frameworks
 fi

Implementation

// MARK: - RIBsTreeViewer

#if DEBUG
import RIBsTreeViewerClient

@available(iOS 13.0, *)
var RIBsTreeViewerHolder: RIBsTreeViewer? = nil

extension AppDelegate {
    private func startRIBsTreeViewer(launchRouter: Routing) {
        if #available(iOS 13.0, *) {
            RIBsTreeViewerHolder = RIBsTreeViewerImpl.init(router: launchRouter,
                                                           option: [.webSocketURL: "ws://0.0.0.0:8080",
                                                                    .monitoringInterval: 1000]])
            RIBsTreeViewerHolder?.start()
        } else {
            DEBUGLOG { "RIBsTreeViewer is not supported OS version." }
        }
    }
}
#endif

WebSocket Server

$ yarn install
$ node index.js

Browser

$ yarn install
$ npx webpack
$ open ./public/index.html

About

Real Time viewing attached RIBs Tree on Browser

License:MIT License


Languages

Language:Swift 70.2%Language:JavaScript 16.5%Language:HTML 7.9%Language:Objective-C 5.4%