Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sockjs-client don`t reply the heart-beat from service #431

Closed
RodJohn opened this issue Apr 23, 2018 · 1 comment
Closed

sockjs-client don`t reply the heart-beat from service #431

RodJohn opened this issue Apr 23, 2018 · 1 comment

Comments

@RodJohn
Copy link

RodJohn commented Apr 23, 2018

  1. service codes based spring websocket
public class Config implements WebSocketConfigurer {

    @Override
    public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
        registry
                .addHandler(myHandler(),"/chatroom")
                .withSockJS()
                .setHeartbeatTime(20000)
                .setDisconnectDelay(10000);
    }
}

2.client based sockjs

var sock = new SockJS('http://localhost:9000/chatroom');

sock.onmessage = function(e) {
    console.log('message', e.data);
}

3.result

here is only the heart beat from service .
sockjs doesn`t reply it 

like this

1524477387 1

@brycekahle
Copy link
Contributor

This is expected. See #67 and #297

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants