mirror of
https://github.com/avwo/whistle.git
synced 2026-10-22 09:34:35 +08:00
feat: eanble://keepClientId
This commit is contained in:
+1
-1
@@ -485,7 +485,7 @@ function resolveWebsocket(socket, wss) {
|
||||
} else {
|
||||
var clientId = headers[config.CLIENT_ID_HEADER];
|
||||
if (clientId) {
|
||||
if (util.isEnable(socket, 'keepClientId')) {
|
||||
if (!util.isEnable(socket, 'keepClientId')) {
|
||||
util.removeClientId(headers);
|
||||
}
|
||||
data.clientId = clientId;
|
||||
|
||||
Reference in New Issue
Block a user