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
Reconnecting WebSocket on Node.js #21
Reconnecting WebSockets in TpyWs work in Deno, but not in Node.js. Whether this issue is related to runtime differences or subtle changes in core implementation, there is a better way to implement the reconnecting WebSocket. (Idea: Asynchronous generator function to await and loop over closing events.)
Custom error handlers in httpRaw() #20
Some endpoints have different implications to each kind of HTTP response code, for example, not all 500s are internal server errors, they could be authentication mismatching in specific context. (Idea: add parameter that specifies an array of cases and functions.)
Array<{// Determines if case is applicable; number for HTTP status code, or// a function that takes the response object and returns the validity.case: number|(r: Response)=>boolean,// Function to run if `case` matches the response's HTTP status code// or is true.fn: ()=>void,}>
Main
Reconnecting WebSockets in
TpyWs
work in Deno, but not in Node.js. Whether this issue is related to runtime differences or subtle changes in core implementation, there is a better way to implement the reconnecting WebSocket. (Idea: Asynchronous generator function to await and loop over closing events.)httpRaw()
#20Some endpoints have different implications to each kind of HTTP response code, for example, not all
500
s are internal server errors, they could be authentication mismatching in specific context. (Idea: add parameter that specifies an array of cases and functions.)Subsequent
TpyError
enhancements #18cause
inside TpyError instead ofdetermination
.message
anddescription
.messageContext
from public use.TpyKV
enhancements #22transact
. #23transactWithResult
. #24transactMulti
. #25transactMultiWithResult
. #26cas
. #27casMulti
. #28Guild.GET.Guild
resolves type proper type instead ofany
.The text was updated successfully, but these errors were encountered: