##### WebSocket class

1. Constructors
2. WebSocket
3. fromUpgradedSocket
4. Properties
5. closeCode
6. closeReason
7. extensions
8. pingInterval
9. protocol
10. readyState
11. done
12. first
13. hashCode
14. isBroadcast
15. isEmpty
16. last
17. length
18. runtimeType
19. single
20. Methods
21. add
22. addStream
23. addUtf8Text
24. close
25. addError
26. any
27. asBroadcastStream
28. asyncExpand
29. asyncMap
30. cast
31. contains
32. distinct
33. drain
34. elementAt
35. every
36. expand
37. firstWhere
38. fold
39. forEach
40. handleError
41. join
42. lastWhere
43. listen
44. map
45. noSuchMethod
46. pipe
47. reduce
48. singleWhere
49. skip
50. skipWhile
51. take
52. takeWhile
53. timeout
54. toList
55. toSet
56. toString
57. transform
58. where
59. Operators
60. operator ==
61. Static properties
62. userAgent
63. Static methods
64. connect
65. Constants
66. CLOSED
67. closed
68. CLOSING
69. closing
70. CONNECTING
71. connecting
72. OPEN
73. open

# closeReason property

String closeReason

The close reason set when the WebSocket connection is closed. If there is no close reason available this property will be `null`

## Implementation

    String get closeReason;