[ 
https://issues.apache.org/jira/browse/THRIFT-5003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eugen Kandakov updated THRIFT-5003:
-----------------------------------
    Description: 
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)}}

 

Testable Repo with thrift branch from PR: 
[https://github.com/alabama/thrift-testing]

  was:
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)}}


> 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
>            Priority: Major
>              Labels: Browser, JavaScript, WebSocket, webpack
>             Fix For: 0.14.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)}}
>  
> Testable Repo with thrift branch from PR: 
> [https://github.com/alabama/thrift-testing]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to