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
Currently the connectionParams option must be either a Record<string, unknown> or a synchronous function that returns Record<string, unknown>.
/**
* Optional parameters, passed through the `payload` field with the `ConnectionInit` message,
* that the client specifies when establishing a connection with the server. You can use this
* for securely passing arguments for authentication.
*/
connectionParams?: Record<string, unknown> | (() => Record<string, unknown>);
This is an issue for applications that need to asynchronously retrieve the data for the ConnectionInit message. Like for instance retrieving a security token required for the WS authentication. This is particularly a problem in case lazy option is set to false and the client tries to open the WS immediately.
This is enhancement request to allow connectionParams to be either a Promise or async function, so the application can asynchronously retrieve the information required for the ConnectionInit message.
The text was updated successfully, but these errors were encountered:
Currently the connectionParams option must be either a Record<string, unknown> or a synchronous function that returns Record<string, unknown>.
This is an issue for applications that need to asynchronously retrieve the data for the ConnectionInit message. Like for instance retrieving a security token required for the WS authentication. This is particularly a problem in case
lazy
option is set to false and the client tries to open the WS immediately.This is enhancement request to allow connectionParams to be either a Promise or async function, so the application can asynchronously retrieve the information required for the
ConnectionInit
message.The text was updated successfully, but these errors were encountered: