Skip to content

Commit 90fa597

Browse files
author
yuki tamazawa
committed
[ci skip] bug fixed
1 parent a09bf98 commit 90fa597

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

Browser/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ sock.addEventListener("message", e => {
2727
}
2828
} else {
2929
const blob = new Blob([e.data], {
30-
type: 'image/jpeg'
30+
type: 'image/png'
3131
});
3232
var blobURL = blobUtil.createObjectURL(blob);
3333
document.getElementById('capture').setAttribute('src', blobURL);

RIBsTreeViewerClient.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,13 @@
312312
);
313313
INFOPLIST_FILE = RIBsTreeViewerClient/Info.plist;
314314
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
315-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
315+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
316316
LD_RUNPATH_SEARCH_PATHS = (
317317
"$(inherited)",
318318
"@executable_path/Frameworks",
319319
"@loader_path/Frameworks",
320320
);
321-
MARKETING_VERSION = 1.0.0;
321+
MARKETING_VERSION = 1.0.2;
322322
PRODUCT_BUNDLE_IDENTIFIER = co.minipro.app.RIBsTreeViewerClient;
323323
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
324324
SKIP_INSTALL = YES;
@@ -346,13 +346,13 @@
346346
);
347347
INFOPLIST_FILE = RIBsTreeViewerClient/Info.plist;
348348
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
349-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
349+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
350350
LD_RUNPATH_SEARCH_PATHS = (
351351
"$(inherited)",
352352
"@executable_path/Frameworks",
353353
"@loader_path/Frameworks",
354354
);
355-
MARKETING_VERSION = 1.0.0;
355+
MARKETING_VERSION = 1.0.2;
356356
PRODUCT_BUNDLE_IDENTIFIER = co.minipro.app.RIBsTreeViewerClient;
357357
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
358358
SKIP_INSTALL = YES;

RIBsTreeViewerClient/Sources/RIBsTreeViewer.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class RIBsTreeViewerImpl {
3232
if let url = url {
3333
self.webSocket = WebSocketClient.init(url: URL(string: url)!)
3434
} else {
35-
self.webSocket = WebSocketClient.init(url: URL(string: "wc://0.0.0.0:8080")!)
35+
self.webSocket = WebSocketClient.init(url: URL(string: "ws://0.0.0.0:8080")!)
3636
}
3737
self.webSocket.delegate = self
3838
self.webSocket.connect()
@@ -52,7 +52,7 @@ public class RIBsTreeViewerImpl {
5252
let jsonString = String(bytes: jsonData, encoding: .utf8)!
5353
self?.webSocket.send(text: jsonString)
5454
} catch {
55-
print(error)
55+
// print(error)
5656
}
5757
})
5858
.disposed(by: disposeBag)
@@ -158,6 +158,7 @@ class WebSocketClient: NSObject {
158158

159159
func connect() {
160160
webSocketTask.resume()
161+
listen()
161162
}
162163

163164
func disconnect() {
@@ -197,6 +198,7 @@ class WebSocketClient: NSObject {
197198
case .failure(let error):
198199
self.delegate?.onError(client: self, error: error)
199200
}
201+
self.listen()
200202
}
201203
}
202204

0 commit comments

Comments
 (0)