Sha256: 383aefdbe0ea3cdd8820f86c2fb87f1e4aafded6c5228e399f7f387ea2143494

Contents?: true

Size: 330 Bytes

Versions: 8

Compression:

Stored size: 330 Bytes

Contents

module EventMachine
  module WebSocket
    module Close05
      def close_websocket(code, body)
        # TODO: Ideally send body data and check that it matches in ack
        send_frame(:close, "\x53")
        @state = :closing
        start_close_timeout
      end

      def supports_close_codes?; false; end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
em-websocket-0.5.3 lib/em-websocket/close05.rb
em-websocket-0.5.2 lib/em-websocket/close05.rb
sonixlabs-em-websocket-0.5.1.5 lib/em-websocket/close05.rb
sonixlabs-em-websocket-0.5.1.4 lib/em-websocket/close05.rb
sonixlabs-em-websocket-0.5.1.3 lib/em-websocket/close05.rb
sonixlabs-em-websocket-0.5.1.2 lib/em-websocket/close05.rb
sonixlabs-em-websocket-0.5.1.1 lib/em-websocket/close05.rb
em-websocket-0.5.1 lib/em-websocket/close05.rb