Sha256: 9bfd5d23f8c6f9e17c3ed993e33181e3398ba88898add84ebe3345461800720c

Contents?: true

Size: 326 Bytes

Versions: 8

Compression:

Stored size: 326 Bytes

Contents

module EventMachine
  module WebSocket
    module Close03
      def close_websocket(code, body)
        # TODO: Ideally send body data and check that it matches in ack
        send_frame(:close, '')
        @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/close03.rb
em-websocket-0.5.2 lib/em-websocket/close03.rb
sonixlabs-em-websocket-0.5.1.5 lib/em-websocket/close03.rb
sonixlabs-em-websocket-0.5.1.4 lib/em-websocket/close03.rb
sonixlabs-em-websocket-0.5.1.3 lib/em-websocket/close03.rb
sonixlabs-em-websocket-0.5.1.2 lib/em-websocket/close03.rb
sonixlabs-em-websocket-0.5.1.1 lib/em-websocket/close03.rb
em-websocket-0.5.1 lib/em-websocket/close03.rb