Closed MrDiamond64 closed 1 year ago
The ds
refers to the downstream client. The this.options
refers to the options object passed to the Relay class on instantiating. If the onMsaCode is present, it will be called opposed to sending the login prompt to the user in a kick message. For information on API fields refer to the typescript definitions.
Hi,
I noticed in relay.js:193 it is passing
ds
onto theonMsaCode
function. https://github.com/PrismarineJS/bedrock-protocol/blob/d7345ed7321d802dd9f57ffd95bb8768e5a6e10c/src/relay.js#L193However on line 191 (where
onMsaCode
is defined),ds
isnt declared anywhere, making it so passingds
is redundant. https://github.com/PrismarineJS/bedrock-protocol/blob/d7345ed7321d802dd9f57ffd95bb8768e5a6e10c/src/relay.js#L191ds
is declared at line 182 so passing it ontoonMsaCode
isnt needed. https://github.com/PrismarineJS/bedrock-protocol/blob/d7345ed7321d802dd9f57ffd95bb8768e5a6e10c/src/relay.js#L182I feel like im missing something, but i thought I would bring it up 😅