-
Notifications
You must be signed in to change notification settings - Fork 176
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
Changing Ping interval, added debugging message, fixed Sec-WebSocket-Protocol, and fixed wss #33
Conversation
- Added debug message for sending and recieving - Removed OcppDraft and used example from https://github.com/TooTallNate/Java-WebSocket/wiki/Specifing-a-Sec-WebSocket-Protocol - Changed interface for enabling wss, because throws null exception. Setting socket needs to between creating client and connecting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for my slow response. It looks good.
I like that you constructor inject the SSLContext, but why did you remove the draft? I'm kinda sad it went from being injected in the constructor, to be newed up in the connect method.
Hi Thomas, The reason I removed the draft was because it wasn't working for me. It may of been because I had a mismatched of the Java-WebSocket library when pulling code and then repaired on the way to the current solution. I felt the draft increasing code complexity and required you to understand the underlying libraries. This way you keep the abstraction layer and follow examples from the library itself (https://github.com/TooTallNate/Java-WebSocket/wiki/Specifing-a-Sec-WebSocket-Protocol). Both solutions might work but I didn't have time to test on my system. I prefer my solution because it reduces code complexity and follow standards from the library itself. Regards, |
Fair enough, I'll take it. |
I didn't notice it right away, but all the integration tests are failing on this PR. |
I don't see the integration tests failing. Below is after mvn clean then mvn test. [INFO] ------------------------------------------------------------------------ |
Added same protocol to WebSocketListener.
Sorry for the extreme slow response, but I reintroduced your changes and made them work by adding the protocol to the server as well. |
No description provided.