You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Duru Can Celasun (Jira)" <ji...@apache.org> on 2019/12/12 22:48:00 UTC
[jira] [Updated] (THRIFT-5003) Websocket Connection in Browsers
with nodejs code
[ https://issues.apache.org/jira/browse/THRIFT-5003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Duru Can Celasun updated THRIFT-5003:
-------------------------------------
Affects Version/s: (was: 0.14.0)
0.13.0
> 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.13.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)