rf-web/vendor/bundle/gems/em-websocket-0.5.1/lib/em-websocket/close05.rb

15 lines
330 B
Ruby
Raw Normal View History

2019-10-21 08:18:17 +00:00
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