Am looking to pass query params to WebSocketReconnect from 'reconnecting-websocket' npm package.
I have query params
const params = {
id1: 'test1',
id2: 'test2
}
Am trying to pass the above params into WebSocketReconnect()
new WebSocketReconnect('wss://localhost:8080/')
is there a way to pass the params to WebSocketReconnect rather than appending the params as string to the url
expected url is wss://localhost:8080?id1=test1&id2=test2