Websocket Endpoint
Websocket Endpoint is used to create and start Websocket receiving service, it can register different routes Router to handle different requests.
# Type
endpoint/ws
# Startup configuration
This component allows the reuse of shared connection clients through the server
field. See Component Connection Reuse for reference.
Field | Type | Required | Description | Default |
---|---|---|---|---|
server | string | Yes | ws service address, e.g. ":8080" | - |
certFile | string | No | Cert file path | 0 |
certKeyFile | string | No | CertKey file path | - |
# Examples
The following are example codes using endpoint:
Edit this page on GitHub (opens new window)
Last Updated: 2024/10/23, 10:13:01