Skip to content

Commit 97016f5

Browse files
author
Spyes
committed
added params
1 parent 3f52c02 commit 97016f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ class RapidAPI {
122122
* @param event Name of the event
123123
* @param callbacks Callback functions to call on message and on connection close
124124
*/
125-
listen (pack, event, callbacks) {
125+
listen (pack, event, params, callbacks) {
126126
const user_id = `${pack}.${event}_${this.project}:${this.key}`;
127127
const {
128128
onMessage = () => {},
129129
onClose = () => {}
130130
} = callbacks;
131131
request({
132-
uri: `${RapidAPI.callbackBaseURL()}/api/get_token?user_id=${user_id}`,
132+
uri: `${RapidAPI.callbackBaseURL()}/api/get_token?user_id=${user_id}&params=${JSON.stringify(params)}`,
133133
method: 'GET',
134134
headers: {
135135
"Content-Type": "application/json"

0 commit comments

Comments
 (0)