Can you use axios with a node socket #4893
-
Can I send an http socket over a node stream that I define? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You should be able to, should this not work please put in a PR or open a new issue. |
Beta Was this translation helpful? Give feedback.
-
Oh ok, I understand much better now, so no this is not possible as Axios is an HTTP client and not a web socket client. This is also probably not something we will look into doing any time soon as you can use the standard Websocket built in https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications |
Beta Was this translation helpful? Give feedback.
Oh ok, I understand much better now, so no this is not possible as Axios is an HTTP client and not a web socket client. This is also probably not something we will look into doing any time soon as you can use the standard Websocket built in https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications