This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Repository navigation
Add websocket-cluster:start and websocket-cluster:stop - #307
Closed
joetannenbaum wants to merge 1 commit into
Closed
joetannenbaum wants to merge 1 commit into
joetannenbaum wants to merge 1 commit into
Conversation
The API can now start and stop a Laravel Reverb WebSocket cluster
(POST /websocket-servers/{websocketServer}/start and /stop). Both
commands resolve the cluster like websocket-cluster:get and output the
updated cluster with --json. Stopping means the cluster's applications
stop accepting connections, so websocket-cluster:stop confirms and needs
--force when non-interactive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T1Sq4Y2hkEm7aPHvpU9eP2
joetannenbaum
force-pushed
the
api-sync/websocket-clusters
branch
from
November 25, 2026 18:09
c3f1c97 to
08ca07b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
websocket-cluster:startandwebsocket-cluster:stopfor the two WebSocket cluster endpoints in the current API spec that the CLI didn't cover.Findings
POST /websocket-servers/{websocketServer}/startWebsocketServerResourcePOST /websocket-servers/{websocketServer}/stopWebsocketServerResourceNeither takes a request body.
WebsocketServerStatusalready includesstopped, so the DTO needed no change.Changes
StartWebSocketClusterRequest/StopWebSocketClusterRequest, plusstart()andstop()onWebSocketClustersResource.websocket-cluster:start {cluster?}andwebsocket-cluster:stop {cluster?} {--force}, aliasedws-cluster:start/ws-cluster:stoplike the other cluster commands. They resolve the cluster the waywebsocket-cluster:getdoes (ID or name, picker when interactive) and print the returned cluster with--json, using the sameWebsocketClusterDTO.websocket-cluster:stopgoes throughconfirmDestructive()and needs--forcewhen non-interactive.websocket-cluster:startdoesn't confirm.Tests
tests/Feature/WebsocketClusterStartStopTest.phpcovers the request each command sends, the--jsonshape, and thatwebsocket-cluster:stoprefuses to run headlessly without--force. The full suite (PromptFallbackTestskipped locally), PHPStan and Pint pass, re-run after rebasing on the currentmain.Demo
This session could not embed the GIFs inline: image markdown was stripped on its way to GitHub, so they are plain links. Add a
!before each to make it play inline.cloud websocket-cluster:start
websocket-cluster:startwith no argument: pick a stopped cluster, then it starts.cloud websocket-cluster:stop
websocket-cluster:stopwith no argument: pick a cluster, confirm, then it stops.Generated by Claude Code