Skip to content

Created a PR to Support Redis for message passing between client#195

Open
chattes wants to merge 18 commits into
peers:masterfrom
chattes:master
Open

Created a PR to Support Redis for message passing between client#195
chattes wants to merge 18 commits into
peers:masterfrom
chattes:master

Conversation

@chattes

@chattes chattes commented May 31, 2020

Copy link
Copy Markdown

Ability to use Redis Pub Sub to pass messaged between webrtc clients connected across mutiple servers.

@KaiserKarel

Copy link
Copy Markdown

I myself am in need of this feature as well. Perhaps it is however better to abstract the redis portion, to allow for different backends such as memcache.

Also there's quite a few console logs left.

@chattes

chattes commented Jun 12, 2020

Copy link
Copy Markdown
Author

yeah i will remove the console.log. Let me check how we can abstract the Radis part away. Thanks

@afrokick afrokick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why files permissions was changed?

Comment thread src/config/index.ts
}
cert: "",
},
redis: false,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd rather suggest to use an object to describe redis config:

redis: {
  host: "",
  port: 0,
}

import { IRealm } from "../../models/realm";
import { MyWebSocket } from "./webSocket";

const Redis = require("ioredis");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use import instead

@afrokick

Copy link
Copy Markdown
Member

Like @KaiserKarel said, we should use an abstraction to transfer/handle messages. I have an idea how to do it.

I suggest to move this PR to separate package to extends peerjs server with Redis. Others stuff like RabbitMQ, Memcache etc also should be separated packages.

@JackMF

JackMF commented Mar 14, 2021

Copy link
Copy Markdown

Hey just wondering if there are any updates on this PR? would be intersted to try it out

@spayse

spayse commented Jul 17, 2021

Copy link
Copy Markdown

THIS PROJECT SEEMS COOL THX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants