Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ echo.on('connection', function(conn) {
});

const server = http.createServer();
echo.attach(server);
echo.installHandlers(server);
server.listen(9999, '0.0.0.0');
```

Expand Down Expand Up @@ -181,7 +181,7 @@ Once you have create `Server` instance you can hook it to the

```javascript
var http_server = http.createServer();
sockjs_server.attach(http_server);
sockjs_server.installHandlers(http_server);
http_server.listen(...);
```

Expand All @@ -197,7 +197,7 @@ and emits following event:
All http requests that don't go under the path selected by `prefix`
will remain unanswered and will be passed to previously registered
handlers. You must install your custom http handlers before calling
`attach`. You can remove the SockJS handler later with `detach`.
`installHandlers`. You can remove the SockJS handler later with `detach`.
Copy link
Preview

Copilot AI Aug 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation mentions that handlers can be removed with detach, but if attach has been replaced with installHandlers, the removal method may have also changed. Consider verifying if detach is still the correct method name or if it should be updated to match the new API.

Suggested change
`installHandlers`. You can remove the SockJS handler later with `detach`.
`installHandlers`. You can remove the SockJS handler later with `uninstallHandlers`.

Copilot uses AI. Check for mistakes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please cross check this review?


## Connection instance

Expand Down