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

Improve WebSocketServer Error Handling #6230

Merged
merged 2 commits into from
Nov 22, 2019
Merged

Improve WebSocketServer Error Handling #6230

merged 2 commits into from
Nov 22, 2019

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented Nov 21, 2019

Closes: #6173

Prevents an unhandled promise rejection and crashing.

Includes an example for LiveQuery test and closing the proper connections. Since they didn’t exist.

Improve live query monitoring

Closes: #6173

Prevents an unhandled server rejection.

Includes an example for LiveQuery test and closing the proper connections.

Improve live query monitoring
@codecov
Copy link

codecov bot commented Nov 21, 2019

Codecov Report

Merging #6230 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6230      +/-   ##
==========================================
+ Coverage   93.86%   93.95%   +0.09%     
==========================================
  Files         167      167              
  Lines       11302    11306       +4     
==========================================
+ Hits        10609    10623      +14     
+ Misses        693      683      -10
Impacted Files Coverage Δ
src/LiveQuery/ParseLiveQueryServer.js 94.4% <ø> (+4.34%) ⬆️
src/LiveQuery/ParseWebSocketServer.js 92.3% <100%> (+4.8%) ⬆️
src/Adapters/WebSocketServer/WSSAdapter.js 100% <100%> (ø) ⬆️
src/Adapters/WebSocketServer/WSAdapter.js 100% <100%> (ø) ⬆️
src/Adapters/Auth/apple.js 87.09% <0%> (-9.68%) ⬇️
src/Adapters/Auth/httpsRequest.js 95.23% <0%> (-4.77%) ⬇️
src/Routers/PushRouter.js 93.1% <0%> (-3.45%) ⬇️
src/RestWrite.js 93.58% <0%> (-0.17%) ⬇️
...dapters/Storage/Postgres/PostgresStorageAdapter.js 97.25% <0%> (+0.08%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5ed0885...7d9b67e. Read the comment docs.

@dplewis
Copy link
Member Author

dplewis commented Nov 22, 2019

@acinader How does this look?

Copy link
Contributor

@acinader acinader left a comment

Choose a reason for hiding this comment

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

lgtm

@dplewis dplewis merged commit 5bf87d8 into master Nov 22, 2019
@dplewis dplewis deleted the wss-error branch November 22, 2019 21:23
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
* Improve WebSocketServer Error Handling

Closes: parse-community#6173

Prevents an unhandled server rejection.

Includes an example for LiveQuery test and closing the proper connections.

Improve live query monitoring

* fix tests
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.

Exception handling in Websocket
2 participants