Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a JS playground with @chat-e2ee/service package #289

Open
muke1908 opened this issue May 9, 2023 · 8 comments
Open

Create a JS playground with @chat-e2ee/service package #289

muke1908 opened this issue May 9, 2023 · 8 comments
Assignees
Labels
easy large Pull request is large

Comments

@muke1908
Copy link
Owner

muke1908 commented May 9, 2023

Create a fiddle using @chat-e2ee/service package to demonstrate basic functionalities.
use @chat-e2ee/[email protected]

https://github.com/muke1908/chat-e2ee/tree/master/service

@muke1908 muke1908 added easy large Pull request is large labels May 9, 2023
@rohan-naik07
Copy link

Hi @muke1908 .... can I take up this?

@muke1908
Copy link
Owner Author

@rohan-naik07 Sure, go ahead.

@rohan-naik07
Copy link

fiddle means online code editor right that exposes all the APIs of the sdk ...like two code editors which represent 2 users and we can create a dummy channel between them?

@muke1908
Copy link
Owner Author

@rohan-naik07 yes, working demo of the exposed APIs on the SDK.

@rohan-naik07
Copy link

So basically I will proceed with a new react app called e2ee-playground.

  • this frontend will have 2 open code editors which expose all the apis of the SDK.
  • person can run the code in the editors on the cloud runtime (eg- aws lamdba) and render the logs of each editor below the each editor respectively

@muke1908
Copy link
Owner Author

I think you can just keep it vanilla-js, react-app is unnecessary imo.
You can use codesandbox for writing code.
Instead of 2 editor, we can simulate 2 users using iframe - user1 is main window, user2 embedded in an iframe.

Here is an example: https://codesandbox.io/p/sandbox/gracious-pine-6jhqwt

@rohan-naik07
Copy link

So its just creating two html pages in the sandbox which simulate two users and embed the second user in first user's window. the two users can send messages to each user using common channel.

@muke1908
Copy link
Owner Author

Yes. I didn't understand what you meant by "common channel" but they both will have their own chatInstance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy large Pull request is large
Projects
None yet
Development

No branches or pull requests

2 participants