NREL / api-umbrella

Open source API management platform
http://apiumbrella.io
MIT License
2.01k stars 324 forks source link

Does API-Umbrella support socket.io? #452

Open CHOMNANP opened 5 years ago

CHOMNANP commented 5 years ago

I have tried api umbrella with socket io, and the network does not go through.

Any tips how to get this working with socket.io?

science695 commented 4 years ago

Hello,

I am trying the same thing, I have the polling transport working, but it seems like the upgrade header is being removed before the request goes to the backend server.

@GUI Is there someway to configure umbrella so the upgrade header can get through?

GET /socket.io/?EIO=3&transport=websocket&sid=SESSIONID header: upgrade: websocket

The backend then responds with a http status code to switch protocols and both backend and client switch to the websocket protocol in that same connection.

In addition to the header, can you clarify if there would be a performance problem with a large volume of websockets running through?

CHOMNANP commented 4 years ago

No luck :)

science695 commented 4 years ago

My guess is it is something that Apache TrafficServer is doing during the proxying, but its very hard to find all the settings of all the different parts of Umbrella