Untitled - Posted on May Fri 1st 7:33 PM (Never Expires) - Format: text
  1. async function getAllPlayersInARoom(player_key) {
  2.     let promise = await new Promise(function (resolve, reject) {
  3.         redisClient.hgetall(player_key, function (err, value) {
  4.             if (err) { reject(err); }
  5.             resolve(value);
  6.         });
  7.     });
  8.     // do something promise.resolve();
  9.     return promise;
  10. }

New Paste

Paste Options

Recent Pastes

24 hours ago

dir

10 days ago

Untitled

13 days ago

Untitled

19 days ago

Untitled

68 days ago

Untitled

68 days ago

Untitled

68 days ago

Untitled

68 days ago

Untitled

74 days ago

radis node

74 days ago

node redis