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
Describe the bug
While the notification is formatted and sent to the web-socket as expected , it triggers a timeout after 5000ms since a response is expected.
To Reproduce
const transport = new WebSocketTransport(`ws://${server_ip}:443/rpc`);
const requestManager = new RequestManager([transport]);
const client = new Client(requestManager);
client.notify({method: "foo", params: {"bar": "foobar"}});
Expected behavior
No response should be expected for notifications.
Additional context
WebSocketTransport.sendData has the following signature:
public async sendData(data: JSONRPCRequestData, timeout: number | undefined = 5000): Promise<any>
which defaults to a 5000ms timeout
The text was updated successfully, but these errors were encountered:
This fix was needed because the old default used undefined, which
in turn triggered the default timeout when left unspecified, but
would not allow the user to disable timeouts. This refactor allows
users to be specific about what they want specifying default(undefined),custom
timeout, or no timeout (null).
fixes#231
This fix was needed because the old default used undefined, which
in turn triggered the default timeout when left unspecified, but
would not allow the user to disable timeouts. This refactor allows
users to be specific about what they want specifying default(undefined),custom
timeout, or no timeout (null).
fixes#231
Describe the bug
While the notification is formatted and sent to the web-socket as expected , it triggers a timeout after 5000ms since a response is expected.
To Reproduce
Expected behavior
No response should be expected for notifications.
Additional context
WebSocketTransport.sendData has the following signature:
which defaults to a 5000ms timeout
The text was updated successfully, but these errors were encountered: