redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

Native Web Socket Support

Open wSedlacek opened this issue 4 years ago • 0 comments

In the current iteration of this library SocketCluster is used, particularly v14.3.2 At runtime this library works beautifully, however at design time I have run into a bit of trouble.

Specifically, socketcluster-client is the source of two warnings in my npm install.

npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

And the types for socketcluster-client import node libraries like consumable-stream and ws which have /// <reference types="node" /> in the files. This causes any import of those types to pollute the global type space with a bunch of node types.

The first problem is ignorable, and the second problem can be worked around by just making my own types for socketcluster-client. That said, these problems don't seem like they are going to be resolved any time soon.

It would be nice if I didn't need to use this third party library to interact with the remote dev tools. My integration could have a lot few dependencies and a lot less design time issues.

wSedlacek avatar Nov 13 '21 08:11 wSedlacek