blob: 8981776f950a9950a4b3a8e69636e9579a391b91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
|