resources/controller.rb in plezi-0.10.12 vs resources/controller.rb in plezi-0.10.13

- old
+ new

@@ -120,10 +120,11 @@ def on_message data # broadcast sends an asynchronous message to all sibling instances, but not to self. data = Plezi::HTTP.escape data broadcast :_print_out, data response << "You said: #{data}" - end + response << (request.ssl? ? "FYI: Yes, This is an SSL connection..." : "FYI: Nope, this isn't an SSL connection (clear text).") if data.match /ssl\?/i +end # called when a disconnect packet has been recieved or the connection has been cut # (ISN'T called after a disconnect message has been sent). def on_close end \ No newline at end of file