Skip to content

Commit

Permalink
[ci skip] bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki tamazawa committed Dec 3, 2019
1 parent a09bf98 commit 90fa597
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Browser/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sock.addEventListener("message", e => {
}
} else {
const blob = new Blob([e.data], {
type: 'image/jpeg'
type: 'image/png'
});
var blobURL = blobUtil.createObjectURL(blob);
document.getElementById('capture').setAttribute('src', blobURL);
Expand Down
8 changes: 4 additions & 4 deletions RIBsTreeViewerClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,13 @@
);
INFOPLIST_FILE = RIBsTreeViewerClient/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.0.0;
MARKETING_VERSION = 1.0.2;
PRODUCT_BUNDLE_IDENTIFIER = co.minipro.app.RIBsTreeViewerClient;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -346,13 +346,13 @@
);
INFOPLIST_FILE = RIBsTreeViewerClient/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.0.0;
MARKETING_VERSION = 1.0.2;
PRODUCT_BUNDLE_IDENTIFIER = co.minipro.app.RIBsTreeViewerClient;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down
6 changes: 4 additions & 2 deletions RIBsTreeViewerClient/Sources/RIBsTreeViewer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class RIBsTreeViewerImpl {
if let url = url {
self.webSocket = WebSocketClient.init(url: URL(string: url)!)
} else {
self.webSocket = WebSocketClient.init(url: URL(string: "wc://0.0.0.0:8080")!)
self.webSocket = WebSocketClient.init(url: URL(string: "ws://0.0.0.0:8080")!)
}
self.webSocket.delegate = self
self.webSocket.connect()
Expand All @@ -52,7 +52,7 @@ public class RIBsTreeViewerImpl {
let jsonString = String(bytes: jsonData, encoding: .utf8)!
self?.webSocket.send(text: jsonString)
} catch {
print(error)
// print(error)
}
})
.disposed(by: disposeBag)
Expand Down Expand Up @@ -158,6 +158,7 @@ class WebSocketClient: NSObject {

func connect() {
webSocketTask.resume()
listen()
}

func disconnect() {
Expand Down Expand Up @@ -197,6 +198,7 @@ class WebSocketClient: NSObject {
case .failure(let error):
self.delegate?.onError(client: self, error: error)
}
self.listen()
}
}

Expand Down

0 comments on commit 90fa597

Please sign in to comment.