lahsivjar / react-stomp

React websocket component for STOMP protocol over SockJs
https://www.npmjs.com/package/react-stomp
MIT License
134 stars 41 forks source link

It doesn't work with proxy #128

Closed GabrielBB closed 5 years ago

GabrielBB commented 5 years ago

So i have this in my package.json: "proxy": "http://localhost:8080/"

But react-stomp is assuming the protocol. It uses ws when i want to use http. Check this error.

image

This is my component:

image

I believe if it sets http instead of ws my component would work properly

GabrielBB commented 5 years ago

I don't think this is a problem with this component but with create-react-app itself (https://github.com/facebook/create-react-app/issues/5280) . I'm closing