mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
Merge remote-tracking branch 'origin/master' into feature/envoy
This commit is contained in:
parent
99e788a9b4
commit
02615b8b6c
48 changed files with 1283 additions and 561 deletions
10
integration/backends/ws-echo/index.js
Normal file
10
integration/backends/ws-echo/index.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const WebSocket = require("ws");
|
||||
|
||||
console.log("starting websocket server on :8080");
|
||||
const wss = new WebSocket.Server({ port: 8080 });
|
||||
wss.on("connection", function connection(ws) {
|
||||
ws.on("message", function incoming(message) {
|
||||
console.log("received: %s", message);
|
||||
ws.send(message);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue