##### WebSocket class

1. Constructors
2. WebSocket
3. Properties
4. binaryType
5. bufferedAmount
6. extensions
7. onClose
8. onError
9. onMessage
10. onOpen
11. protocol
12. readyState
13. url
14. hashCode
15. on
16. runtimeType
17. Methods
18. close
19. send
20. sendBlob
21. sendByteBuffer
22. sendString
23. sendTypedData
24. addEventListener
25. dispatchEvent
26. noSuchMethod
27. removeEventListener
28. toString
29. Operators
30. operator ==
31. Static properties
32. supported
33. Constants
34. CLOSED
35. closeEvent
36. CLOSING
37. CONNECTING
38. errorEvent
39. messageEvent
40. OPEN
41. openEvent

# onMessage property

Stream<MessageEvent> onMessage

Stream of `message` events handled by this WebSocket.

## Implementation

    Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);