Added support for commaseparated subprotocols

Removed placeholder from html
This commit is contained in:
Tobias Oort
2022-01-12 09:10:35 +01:00
parent 83203d5f5d
commit 555f155cad
3 changed files with 10 additions and 5 deletions

View File

@@ -370,10 +370,10 @@ describe('websocket Node', function() {
var flow = [
{ id: "server", type: "websocket-listener", path: "/ws" },
{ id: "n1", type: "websocket-client", path: getWsUrl("/ws") },
{ id: "n2", type: "websocket-client", path: getWsUrl("/ws"), subprotocol: "testprotocol" }];
{ id: "n2", type: "websocket-client", path: getWsUrl("/ws"), subprotocol: "testprotocol1, testprotocol2" }];
helper.load(websocketNode, flow, function() {
helper.getNode("n1").should.have.property("subprotocol", undefined);
helper.getNode("n2").should.have.property("subprotocol", "testprotocol");
helper.getNode("n1").should.have.property("subprotocol", []);
helper.getNode("n2").should.have.property("subprotocol", ["testprotocol1","testprotocol2"]);
done();
});
});