# File lib/faye/websocket/draft76_parser.rb, line 49 def close(code = nil, reason = nil, &callback) return if @closed @socket.send([0xFF, 0x00]) if @closing @closed = true callback.call if callback end