You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Eugen Kandakov (Jira)" <ji...@apache.org> on 2019/11/12 00:36:00 UTC

[jira] [Created] (THRIFT-5003) Websocket Connection in Browsers with nodejs code

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)