Skip to content

Commit

Permalink
Add binary sub protocol to allow communication with websockify. (#4303)
Browse files Browse the repository at this point in the history
* Remove wsSerial protocol to allow communication with websockify.

* Follow best practices and use an array to define subprotocols, including binary one used by websockify
  • Loading branch information
CodinMoldovanu authored Jan 16, 2025
1 parent 7059dbe commit b5ec4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/protocols/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class WebsocketSerial extends EventTarget {
this.address = path;
console.log(`${this.logHead} Connecting to ${this.address}`);

this.ws = new WebSocket(this.address, "wsSerial");
this.ws = new WebSocket(this.address, ["binary", "wsSerial"]);
let socket = this;

this.ws.onopen = function (e) {
Expand Down

0 comments on commit b5ec4c3

Please sign in to comment.