Skip to content

Commit

Permalink
Upgrade to xp-forge/websockets 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Oct 5, 2024
1 parent 8230185 commit 3f47d65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"xp-forge/handlebars-templates": "^3.1",
"xp-forge/frontend": "^6.0",
"xp-forge/htmx": "^0.2",
"xp-forge/websockets": "^3.0",
"xp-forge/websockets": "^4.0",
"xp-forge/mongodb": "^2.2",
"xp-forge/redis": "^1.0",
"xp-forge/web-auth": "^4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/main/php/de/thekid/crews/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function message($conn, $data) {
// NOOP
}

public function close($conn) {
public function close($conn, $code, $reason) {
$group= basename($conn->path());
unset($this->subscribers[$group][$conn->id()]);
if (empty($this->subscribers[$group])) {
Expand Down

0 comments on commit 3f47d65

Please sign in to comment.