mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-14 17:37:56 -05:00
This major bump creates a lot of noise, but it is necessary for
prettier to be able to parse new syntax such as:
- typed imports: `import { type xxx } from ...`
- private attributes: `class A { #b; #c() {} }`
10 lines
240 B
JavaScript
10 lines
240 B
JavaScript
const { ClientSocket, listen } = require("../common");
|
|
|
|
const engine = listen((port) => {
|
|
const socket = new ClientSocket("ws://localhost:" + port);
|
|
socket.on("open", () => {
|
|
engine.httpServer.close();
|
|
engine.close();
|
|
});
|
|
});
|