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

refactor: real-time system #2228

Merged

Conversation

anwarulislam
Copy link
Member

@anwarulislam anwarulislam commented Apr 2, 2022

Description

WebSocket System Revamp: Migrate from Option API with JS to Script Setup on TS

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

WebSocket.vue component migrated to script setup in TS from JS options API

@netlify
Copy link

netlify bot commented Apr 2, 2022

‼️ Deploy request for hoppscotch rejected.

Name Link
🔨 Latest commit 93d16d5

@lgtm-com
Copy link

lgtm-com bot commented Apr 2, 2022

This pull request introduces 8 alerts when merging 3565e48 into 8cafef4 - view on LGTM.com

new alerts:

  • 8 for Unused variable, import, function or class

@anwarulislam anwarulislam changed the title refactor: migrate websocket.vue from option api to script setup on ts refactor: websocket system revamp Apr 4, 2022
@anwarulislam anwarulislam force-pushed the refactor/websocket-system-revamp branch from 3565e48 to f6d77b0 Compare April 7, 2022 18:28
@lgtm-com
Copy link

lgtm-com bot commented Apr 7, 2022

This pull request introduces 14 alerts when merging f6d77b0 into d634828 - view on LGTM.com

new alerts:

  • 14 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Apr 11, 2022

This pull request introduces 21 alerts when merging ee4e23b into 745b9f7 - view on LGTM.com

new alerts:

  • 21 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Apr 11, 2022

This pull request introduces 20 alerts when merging e97d9fe into 745b9f7 - view on LGTM.com

new alerts:

  • 20 for Unused variable, import, function or class

@anwarulislam anwarulislam changed the title refactor: websocket system revamp refactor: realtime system revamp Apr 12, 2022
@lgtm-com
Copy link

lgtm-com bot commented Apr 12, 2022

This pull request introduces 20 alerts when merging 53ee661 into 745b9f7 - view on LGTM.com

new alerts:

  • 20 for Unused variable, import, function or class

@anwarulislam anwarulislam marked this pull request as ready for review April 12, 2022 19:24
@lgtm-com
Copy link

lgtm-com bot commented Apr 12, 2022

This pull request introduces 23 alerts when merging 93d16d5 into 745b9f7 - view on LGTM.com

new alerts:

  • 23 for Unused variable, import, function or class

Copy link
Member

@AndrewBastin AndrewBastin left a comment

Choose a reason for hiding this comment

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

The whole idea behind the code separation is to separate out the UI code and the connection code to be independent, so we are trying to remove concerns like, i18n, toasts and similar stuff out of the WSSessionAdapter file into a proper position.

Also, WSSessionAdapter is a really weak name, it would be better if you would rename it to WSConnection.

@lgtm-com
Copy link

lgtm-com bot commented Apr 15, 2022

This pull request introduces 28 alerts when merging ea47903 into f1c42f2 - view on LGTM.com

new alerts:

  • 28 for Unused variable, import, function or class

@anwarulislam anwarulislam force-pushed the refactor/websocket-system-revamp branch from ea47903 to dbeffd4 Compare April 15, 2022 19:56
@lgtm-com
Copy link

lgtm-com bot commented Apr 15, 2022

This pull request introduces 28 alerts when merging dbeffd4 into f1c42f2 - view on LGTM.com

new alerts:

  • 28 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Apr 16, 2022

This pull request introduces 29 alerts when merging a3198af into f1c42f2 - view on LGTM.com

new alerts:

  • 29 for Unused variable, import, function or class

Copy link
Member

@AndrewBastin AndrewBastin left a comment

Choose a reason for hiding this comment

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

Some improvements required here and there and unaddressed type errors

packages/hoppscotch-app/components/realtime/Socketio.vue Outdated Show resolved Hide resolved
packages/hoppscotch-app/components/realtime/Sse.vue Outdated Show resolved Hide resolved
packages/hoppscotch-app/components/realtime/Sse.vue Outdated Show resolved Hide resolved
packages/hoppscotch-app/components/realtime/Websocket.vue Outdated Show resolved Hide resolved
packages/hoppscotch-app/components/realtime/Websocket.vue Outdated Show resolved Hide resolved
@anwarulislam anwarulislam force-pushed the refactor/websocket-system-revamp branch from c9937af to d4be1dd Compare April 19, 2022 01:35
@lgtm-com
Copy link

lgtm-com bot commented Apr 19, 2022

This pull request introduces 30 alerts when merging d4be1dd into d1b339d - view on LGTM.com

new alerts:

  • 30 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Apr 19, 2022

This pull request introduces 30 alerts when merging 984b12e into d1b339d - view on LGTM.com

new alerts:

  • 30 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Apr 19, 2022

This pull request introduces 30 alerts when merging 863ff52 into d1b339d - view on LGTM.com

new alerts:

  • 30 for Unused variable, import, function or class

@liyasthomas liyasthomas force-pushed the refactor/websocket-system-revamp branch from 9f057ad to 8f97aa8 Compare May 28, 2022 05:49
@lgtm-com
Copy link

lgtm-com bot commented May 28, 2022

This pull request introduces 30 alerts when merging 8f97aa8 into 83bdd03 - view on LGTM.com

new alerts:

  • 30 for Unused variable, import, function or class

@liyasthomas liyasthomas changed the title refactor: realtime system revamp refactor: real-time system May 28, 2022
@liyasthomas liyasthomas merged commit f6950ba into hoppscotch:main May 28, 2022
kyteinsky pushed a commit to kyteinsky/hoppscotch that referenced this pull request Jun 4, 2022
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Co-authored-by: liyasthomas <liyascthomas@gmail.com>
liyasthomas added a commit that referenced this pull request Jun 16, 2022
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Co-authored-by: liyasthomas <liyascthomas@gmail.com>
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.

None yet

3 participants