-
Notifications
You must be signed in to change notification settings - Fork 4
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
Websocket watcher #517
Websocket watcher #517
Conversation
type WebsocketProps = { urls: Record<string, string> }; | ||
function Websocket({ urls, children }: PropsWithChildren<WebsocketProps>) { | ||
const urlsListenersRef = useRef( | ||
Object.keys(urls).reduce((acc, urlKey) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not recomputed if urls change
@sBouzols rebase done. |
Signed-off-by: capyq <quentin.capy@rte-france.com>
… custom hook ) Signed-off-by: capyq <quentin.capy@rte-france.com>
Signed-off-by: capyq <quentin.capy@rte-france.com>
…ve usage from demo Signed-off-by: capyq <quentin.capy@rte-france.com>
Signed-off-by: capyq <quentin.capy@rte-france.com>
Signed-off-by: capyq <quentin.capy@rte-france.com>
Signed-off-by: capyq <quentin.capy@rte-france.com>
Signed-off-by: capyq <quentin.capy@rte-france.com>
Signed-off-by: capyq <quentin.capy@rte-france.com>
Signed-off-by: capyq <quentin.capy@rte-france.com>
Signed-off-by: capyq <quentin.capy@rte-france.com>
Signed-off-by: capyq <quentin.capy@rte-france.com>
6ce89b5
to
6b28775
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has totally checked 292 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
273 | 1 | 18 | 0 |
Click to see the invalid file list
- src/components/websocket/index.ts
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
…components, hooks and types. "onopen" event broadcast is renamed "onreopen" to point out that the event is not broadcast at first open as long as there is no listener registered (context uninitialized) Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
…ialization. Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
fix(NotificationsProvider): filter urls to avoid undefined urls when creating connections Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
|
This is a web socket tools.
How to use: