mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-09 15:08:12 -05:00
1.1 KiB
1.1 KiB
name, about, title, labels, assignees
| name | about | title | labels | assignees |
|---|---|---|---|---|
| Bug report | Create a report to help us improve | bug |
Describe the bug A clear and concise description of what the bug is.
To Reproduce
Please fill the following code example:
Engine.IO server version: x.y.z
Server
const engine = require("engine.io");
const server = engine.listen(3000, {});
server.on("connection", (socket) => {
console.log("connection");
socket.on("message", (data) => {
console.log("data", data);
});
socket.on("close", () => {
console.log("close");
});
});
Engine.IO client version: x.y.z
Client
const socket = require("engine.io-client")("ws://localhost:3000");
socket.on("open", () => {
console.log("open");
socket.on("message", (data) => {
console.log("data", data);
});
socket.on("close", () => {
console.log("close");
});
});
Expected behavior A clear and concise description of what you expected to happen.
Platform:
- Device: [e.g. Samsung S8]
- OS: [e.g. Android 9.2]
Additional context Add any other context about the problem here.