public class CloseReason extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CloseReason.Code
Enumeration of status codes for a web socket close.
|
| Constructor and Description |
|---|
CloseReason(CloseReason.Code closeCode,
String reasonPhrase)
Creates a reason for closing a web socket connection with the given
code and reason phrase.
|
public CloseReason(CloseReason.Code closeCode, String reasonPhrase)
closeCode - reasonPhrase -
Copyright © 2012 Oracle and/or its affiliates. All rights reserved.