We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1af3d3e commit 0c51874Copy full SHA for 0c51874
src/js/serial.js
@@ -123,7 +123,7 @@ class Serial extends EventTarget {
123
if (portPath === "virtual") {
124
console.log(`${this.logHead} Using virtual protocol (based on port path)`);
125
newProtocol = this._virtual;
126
- } else if (portPath === "manual") {
+ } else if (portPath === "manual" || /^(tcp|ws):\/\/([A-Za-z0-9.-]+)(?::(\d+))?$/.test(portPath)) {
127
console.log(`${this.logHead} Using websocket protocol (based on port path)`);
128
newProtocol = this._webSocket;
129
} else if (portPath.startsWith("bluetooth")) {
0 commit comments