()
| 387 | // 私有方法 |
| 388 | |
| 389 | private generateSessionId(): string { |
| 390 | return `session_${Date.now()}_${crypto.randomBytes(4).toString('hex')}`; |
| 391 | } |
| 392 | |
| 393 | private generateMessageId(): string { |
| 394 | return `msg_${Date.now()}_${crypto.randomBytes(3).toString('hex')}`; |