Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Oct 4, 2024
1 parent b5552d0 commit ccbe9c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ const { WebSocketServer } = require("ultimate-ws");
const wsServer = new WebSocketServer({ port: 3000 });

// your usual `ws` server code ...
wsServer.on("connection", (socket) => {
socket.on("message", (message) => {
socket.send(message);
wsServer.on("connection", (ws) => {
ws.on("message", (message) => {
ws.send(message);
});
});
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ultimate-ws",
"version": "1.0.3",
"version": "1.0.4",
"description": "The Ultimate WebSocket server. ws-compatible server, based on uWebSockets.",
"main": "src/index.js",
"directories": {
Expand Down

0 comments on commit ccbe9c2

Please sign in to comment.