Exception: LibWebSocket::Frame::Error::PolicyViolation
- Inherits:
-
LibWebSocket::Frame::Error
- Object
- RuntimeError
- Error
- LibWebSocket::Frame::Error
- LibWebSocket::Frame::Error::PolicyViolation
- Defined in:
- lib/libwebsocket/frame/error.rb
Overview
1008 indicates that an endpoint is terminating the connection because it has received a message that violates its policy. This is a generic status code that can be returned when there is no other more suitable status code (e.g. 1003 or 1009), or if there is a need to hide specific details about the policy.
Instance Method Summary collapse
Methods inherited from LibWebSocket::Frame::Error
Instance Method Details
#status_code ⇒ Object
76 |
# File 'lib/libwebsocket/frame/error.rb', line 76 def status_code; 1008; end |