Sha256: ae51d4e687bb09a99d9d97021cd7e188d5da39da62ebc040b6d348b39389df57

Contents?: true

Size: 1.66 KB

Versions: 6

Compression:

Stored size: 1.66 KB

Contents

# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `websocket-extensions` gem.
# Please instead update this file by running `dev typecheck update`.

# typed: true

module WebSocket
end

class WebSocket::Extensions
  def initialize; end

  def activate(header); end
  def add(ext); end
  def close; end
  def generate_offer; end
  def generate_response(header); end
  def process_incoming_message(message); end
  def process_outgoing_message(message); end
  def valid_frame_rsv(frame); end
  def valid_frame_rsv?(frame); end

  private

  def reserve(ext); end
  def reserved?(ext); end
end

class WebSocket::Extensions::ExtensionError < ::ArgumentError
end

WebSocket::Extensions::MESSAGE_OPCODES = T.let(T.unsafe(nil), Array)

class WebSocket::Extensions::Parser
  class << self
    def parse_header(header); end
    def serialize_params(name, params); end
  end
end

WebSocket::Extensions::Parser::EXT = T.let(T.unsafe(nil), Regexp)

WebSocket::Extensions::Parser::EXT_LIST = T.let(T.unsafe(nil), Regexp)

WebSocket::Extensions::Parser::NOTOKEN = T.let(T.unsafe(nil), Regexp)

WebSocket::Extensions::Parser::NUMBER = T.let(T.unsafe(nil), Regexp)

WebSocket::Extensions::Parser::PARAM = T.let(T.unsafe(nil), Regexp)

class WebSocket::Extensions::Parser::ParseError < ::ArgumentError
end

WebSocket::Extensions::Parser::QUOTED = T.let(T.unsafe(nil), Regexp)

WebSocket::Extensions::Parser::TOKEN = T.let(T.unsafe(nil), Regexp)

module WebSocket::Mask
  class << self
    def mask(_, _); end
  end
end

class WebSocket::Extensions::Offers
  def initialize; end

  def by_name(name); end
  def each_offer(&block); end
  def push(name, params); end
  def to_a; end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
packwerk-1.1.2 sorbet/rbi/gems/websocket-extensions@0.1.4.rbi
packwerk-1.1.1 sorbet/rbi/gems/websocket-extensions@0.1.4.rbi
packwerk-1.1.0 sorbet/rbi/gems/websocket-extensions@0.1.4.rbi
packwerk-1.0.2 sorbet/rbi/gems/websocket-extensions@0.1.4.rbi
packwerk-1.0.1 sorbet/rbi/gems/websocket-extensions@0.1.4.rbi
packwerk-1.0.0 sorbet/rbi/gems/websocket-extensions@0.1.4.rbi