# File lib/rack/websocket/handler/thin.rb, line 18 def send_data(data) if @connection @connection.send data else raise WebSocketError, "WebSocket not opened" end end