We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f52c02 commit 97016f5Copy full SHA for 97016f5
index.js
@@ -122,14 +122,14 @@ class RapidAPI {
122
* @param event Name of the event
123
* @param callbacks Callback functions to call on message and on connection close
124
*/
125
- listen (pack, event, callbacks) {
+ listen (pack, event, params, callbacks) {
126
const user_id = `${pack}.${event}_${this.project}:${this.key}`;
127
const {
128
onMessage = () => {},
129
onClose = () => {}
130
} = callbacks;
131
request({
132
- uri: `${RapidAPI.callbackBaseURL()}/api/get_token?user_id=${user_id}`,
+ uri: `${RapidAPI.callbackBaseURL()}/api/get_token?user_id=${user_id}¶ms=${JSON.stringify(params)}`,
133
method: 'GET',
134
headers: {
135
"Content-Type": "application/json"
0 commit comments