Skip to content

Commit

Permalink
minor comment fixes & update to v0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhakk-mw committed Oct 27, 2022
1 parent ed5ef1b commit a2c0432
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions matlab_proxy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ async def matlab_view(req):
# WebSocket
if (
reqH.get("connection")
# Fixes issue #9 on github.
and reqH.get("connection").lower() == "upgrade"
and reqH.get("upgrade")
and reqH.get("upgrade").lower() == "websocket"
Expand All @@ -397,11 +396,11 @@ async def wsforward(ws_from, ws_to):
async for msg in ws_from:
mt = msg.type
md = msg.data
# When a websocket is closed by the MATLAB JSD, it sends out a few http requests to the Embedded Connector about the events

# When a websocket is closed by the MATLAB JSD, it sends out a few http requests to the Embedded Connector about the events
# that had occured (figureWindowClosed etc.)
# The Embedded Connector responds by sending a message of type 'Error' with close code as Abnormal closure.
# When this happens, matlab-proxy can safely exit out of the loop
# When this happens, matlab-proxy can safely exit out of the loop
# and close the websocket connection it has with the Embedded Connector (ws_client)
if (
mt == aiohttp.WSMsgType.ERROR
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def run(self):

setuptools.setup(
name="matlab-proxy",
version="0.5.1",
version="0.5.2",
url=config["doc_url"],
author="The MathWorks, Inc.",
author_email="[email protected]",
Expand Down

0 comments on commit a2c0432

Please sign in to comment.