Interface WebSocketUpgradeResponse
public interface WebSocketUpgradeResponse
Represents an upgrade response for a WebSocket upgrade request. Can either be valid, in which
 case the 
chosenSubprotocol method is valid, or if invalid, the invalidationReason method
 can be used to find out why the upgrade failed.- 
Method SummaryModifier and TypeMethodDescriptionIf valid, returnsSome(subprotocol)(if any was requested), orNoneif none was chosen or offered.If invalid, the reason why the server's upgrade response could not be accepted.booleanisValid()response()Returns the response object as received from the server for further inspection.
- 
Method Details- 
isValidboolean isValid()
- 
responseHttpResponse response()Returns the response object as received from the server for further inspection.- Returns:
- (undocumented)
 
- 
chosenSubprotocolIf valid, returnsSome(subprotocol)(if any was requested), orNoneif none was chosen or offered.- Returns:
- (undocumented)
 
- 
invalidationReasonString invalidationReason()If invalid, the reason why the server's upgrade response could not be accepted.- Returns:
- (undocumented)
 
 
-