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

End of stream error #69

Closed
jbarros35 opened this issue Aug 26, 2019 · 3 comments
Closed

End of stream error #69

jbarros35 opened this issue Aug 26, 2019 · 3 comments

Comments

@jbarros35
Copy link

jbarros35 commented Aug 26, 2019

My WebSocket won't last too much time, it connects and seconds right after it disconnects.
Its not reconnecting automatically, I don't know why...

let ack = destination
let id = destination
let header = ["destination": destination, "ack": ack, "id": id]
self.socketClient = StompClientLib()
socketClient.openSocketWithURLRequest(request: NSURLRequest(url: url as URL) , delegate: self)
socketClient.reconnect(request: NSURLRequest(url: url as URL), delegate: self)
socketClient.subscribeWithHeader(destination: destination, withHeader: header)

I tried the methods for reconnect with no avail yet

    // socketClient.reconnect(request: NSURLRequest(url: url as URL), delegate: self)
    // socketClient.reconnect(request: NSURLRequest(url: url as URL), delegate: self, connectionHeaders: header, time: 4, exponentialBackoff: false)
    socketClient.reconnect(request: NSURLRequest(url: url as URL) , delegate: self as StompClientLibDelegate, time: 4.0)
@jbarros35
Copy link
Author

We are using Spring boot 1.5.9 on the server.

@WrathChaos
Copy link
Owner

Hello @jbarros35,
Can you provide me with an example so I can test what is wrong? However, most probably it has a problem on your backend side.

@stale
Copy link

stale bot commented Nov 28, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants