-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Raj Nandan Sharma
authored and
Raj Nandan Sharma
committed
May 24, 2024
1 parent
e275cb3
commit 1377d6d
Showing
22 changed files
with
2,154 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"printWidth": 300, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"tabWidth": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Ruto | ||
|
||
Ruto is a lightweight(4KB), fast and easy-to-use JS library that streamlines the communication between parent and child window(iframe/popup). | ||
|
||
It uses client-server design pattern to communicate between parent and child window. Any window can become the client or the server depending on who wants to send. It abstracts out the complications of postMessage API and provides a simple API to send and receive messages. | ||
|
||
|
||
## Scenarios where it can be used | ||
|
||
1. Parent window wants to send a message to child window and wants to wait for the response from the child window. | ||
2. Parent window wants to send a message to child window and expects a reply within x seconds. | ||
|
||
## Demo | ||
- [Parent to Iframe](https://ruto-demo.netlify.app/) | ||
- [Parent to Popup](https://ruto-demo.netlify.app/) | ||
|
||
## Installation | ||
|
||
To be added | ||
|
||
## Usage | ||
|
||
To be added | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.