# File lib/rack/websocket/handler/thin.rb, line 27 def close_websocket if @connection @connection.close_websocket else raise WebSocketError, "WebSocket not opened" end end