-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add WebSocket support and launcher #108
base: main
Are you sure you want to change the base?
Conversation
935b2ff
to
ee271aa
Compare
ee271aa
to
c304f94
Compare
try { | ||
String port = args[0]; | ||
Optional<Exception> launchFailure; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declaration can go down with the assignment
|
||
#### WebSockets | ||
|
||
Run `./gradlew run --args="3000 --ws"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put --ws
in front? I would assume here that 3000
is a positional argument that comes after named arguments, and those are usually last.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps it's also worth considering the deprecation of port
as a positional argument and making it a --port
option? For some time the server could support both styles, but eventually the positional way would be dropped.
Description of changes:
Testing:
./gradlew run --args="3000 --ws"
, confirm a websocket client can connect and communicate with it./gradlew run --args="0"
, confirm no behavior changeBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.