-
Notifications
You must be signed in to change notification settings - Fork 493
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
WebSocket support close #99 #103
Conversation
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.
This is kind of a simple websocket proxy isolated with other components in EG, there left work to naturally merged it into existed traffic ecosystem.
// Spec describes the HTTPServer. | ||
Spec struct { | ||
Port uint16 `yaml:"port" jsonschema:"required,minimum=1"` | ||
HTTPS bool `yaml:"https" jsonschema:"required"` |
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.
HTTPS? Should it be WSS
or EnableTLS
?
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.
Actually, this service can enable TLS in two places, one is the HTTP server it starts with, the other is the backend WebSocket's.
- This
HTTPS
is for the original HTTP server this proxy works on. (Before protocol switching) - The backend WebSocket service's TLS configure can be enabled when it starts with
wss
in URL.
@xxx7xxxx Yes, cause I haven't figure out how to update the We need a big issue and design for this, not only for WebSocket/TCP, but also for MQTT protocol. |
Updated as comments. |
TODO
HTTPServer
, and managed byTrafficController
.