Eugen Kandakov created THRIFT-5003:
--------------------------------------
Summary: Websocket Connection in Browsers with nodejs code
Key: THRIFT-5003
URL: https://issues.apache.org/jira/browse/THRIFT-5003
Project: Thrift
Issue Type: Improvement
Components: Node.js - Library, TypeScript - Library
Affects Versions: 0.14.0
Environment: Webpack 4.41.2
Thrift 0.13.0
NodeJS thrift lib required in browser env
Reporter: Eugen Kandakov
Assignee: Eugen Kandakov
Fix For: 0.14.0
After some changes to the ws_connection.js file in the nodejs code, I could
create a version of the WSConnection, createWSConnection and createWSClient
which is able to run similar code of WebSocket connections in the browser and
NodeJS
Solution is package, `{{isomorphic-ws` which provides the proper Websocket libs
depending on the env (browser or node)}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)