Sha256: fd52451d414b98da3aaa329b6f458c5bce086f2ca1c9f9791c2943bd2fb515ea

Contents?: true

Size: 299 Bytes

Versions: 2

Compression:

Stored size: 299 Bytes

Contents

module EventMachine
  module WebSocket
    class Handler03 < Handler
      include Handshake76
      include Framing03

      def close_websocket
        # TODO: Should we send data and check the response matches?
        send_frame(:close, '')
        @state = :closing
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
em-websocket-0.2.1 lib/em-websocket/handler03.rb
em-websocket-0.2.0 lib/em-websocket/handler03.rb