Exception: LibWebSocket::Frame::Error::PolicyViolation

Inherits:
LibWebSocket::Frame::Error show all
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

#clean_close?

Instance Method Details

#status_codeObject



76
# File 'lib/libwebsocket/frame/error.rb', line 76

def status_code; 1008; end