0

I have a simple web app, which is using websockets. simple webapp: Frontend - using sockjs, stomp Backend - Spring 4.2.x

Frontend & Backend are packaged in the same WAR, this WAR is deployed on IBM WebSphere Application Server v9.x

When I check the Developer Tools/Web Console in chrome(61.x)/firefox(56.0, 32 bit), I see that websocket transport is not being used, it's always xhr streaming. To use the websocket transport, I have passed the transports option in sockjs, like below, but after this change the websockets stopped working.

var sockjs = new SockJS(my url, null, {transports: ["websocket"]});

Do we need to change any configuration on IBM WebSphere Application Server v9.x to enable websocket transport ?

Update: on tomcat/liberty servers, sample app always uses websocket transport. Only on WAS, it is using xhr streaming. Issue in WAS?

4

1 回答 1

0

Websphere v9.x 默认开启 Websocket 协议处理

于 2017-10-25T13:27:36.153 回答