Skip to content

Commit

Permalink
Merge remote-tracking branch 'engine.io-protocol/v3'
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Jul 8, 2024
2 parents 1d65f11 + 68efa28 commit cbf6df0
Show file tree
Hide file tree
Showing 7 changed files with 3,135 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/engine.io-protocol/v3-test-suite/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
30 changes: 30 additions & 0 deletions docs/engine.io-protocol/v3-test-suite/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>Test suite for the Engine.IO protocol</title>
<link rel="stylesheet" href="https://unpkg.com/mocha@9/mocha.css" />
</head>
<body>

<div id="mocha"></div>

<script src="https://unpkg.com/mocha@9/mocha.js"></script>
<script src="https://unpkg.com/chai@4/chai.js" ></script>
<script src="https://unpkg.com/chai-string@1/chai-string.js" ></script>

<script class="mocha-init">
mocha.setup("bdd");
mocha.checkLeaks();
</script>

<script type="module" src="test-suite.js"></script>

<script class="mocha-exec">
mocha.run();
</script>

</body>
</html>
10 changes: 10 additions & 0 deletions docs/engine.io-protocol/v3-test-suite/node-imports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import fetch from "node-fetch";
import { WebSocket } from "ws";
import chai from "chai";
import chaiString from "chai-string";

chai.use(chaiString);

globalThis.fetch = fetch;
globalThis.WebSocket = WebSocket;
globalThis.chai = chai;
Loading

0 comments on commit cbf6df0

Please sign in to comment.