feat(utilities): EE support different requests
This commit is contained in:
parent
3863f3e4ee
commit
899920c29d
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ const socketsList = function (req, res) {
|
|||
wsRouter.get(`/${process.env.S3_KEY}/sockets-list`, socketsList);
|
||||
|
||||
const socketsListByProject = function (req, res) {
|
||||
if (process.env.uws !== "true") {
|
||||
if (process.env.uws === "true") {
|
||||
req.params = {projectKey: req.getParameter(0)};
|
||||
}
|
||||
debug && console.log(`[WS]looking for available sessions for ${req.params.projectKey}`);
|
||||
|
|
@ -89,7 +89,7 @@ const socketsLive = async function (req, res) {
|
|||
wsRouter.get(`/${process.env.S3_KEY}/sockets-live`, socketsLive);
|
||||
|
||||
const socketsLiveByProject = async function (req, res) {
|
||||
if (process.env.uws !== "true") {
|
||||
if (process.env.uws === "true") {
|
||||
req.params = {projectKey: req.getParameter(0)};
|
||||
}
|
||||
debug && console.log(`[WS]looking for available LIVE sessions for ${req.params.projectKey}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue