docs(framework): 澄清 SERVER_KEYS 有意只取 *_server_tcp(WebSocket-only)
最终审查指出 spec 文本列了 *_server_http 而代码注释称逐字一致,易致误解。补注说明本期 WebSocket-only、HTTP 传输模式(netType==1)超范围。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -46,7 +46,11 @@ export function getParam(config: RemoteConfig, key: string, id: ChannelIdentity)
|
||||
return value;
|
||||
}
|
||||
|
||||
/** 连接相关参数键(逐字一致)。优先级即数组顺序。 */
|
||||
/**
|
||||
* 连接相关参数键(键名逐字一致原 getConfig_Succ)。优先级即数组顺序。
|
||||
* 仅取 *_server_tcp:YouleNexus 为 WebSocket-only(原 netType==0 分支);
|
||||
* 原工程的 *_server_http 属 HTTP 传输模式(netType==1),本期不在范围,故有意省略。
|
||||
*/
|
||||
const SERVER_KEYS = ['player_server_tcp', 'visitor_server_tcp', 'game_server_tcp'] as const;
|
||||
|
||||
function toWs(addr: string): string {
|
||||
|
||||
Reference in New Issue
Block a user