You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: switch server API to command-based architecture
- Add handleCommand hook for server-side command dispatch in handlePacket
- Thread serverOptions (handleCommand, encoding) through createServer → Server → ConnectionConfig → Connection
- Add Query.fromPacket() for server-side COM_QUERY deserialization
- Make Handshake packet support configurable getSalt and authPluginName
- Simplify HandshakeResponse to accept pre-calculated authToken
- Use _serverEncoding getter for server write helpers (writeColumns, writeOk, etc.)
- Bump sequenceId by 1 on server-side command start
- Emit auth errors to connection instead of throwing
`Server requests authentication using unknown plugin ${pluginName}. See ${'TODO: add plugins doco here'} on how to configure or author authentication plugins.`
99
+
consterr=newError(
100
+
`Server requests authentication using unknown plugin ${pluginName}.`
0 commit comments