module Padrino::WebSockets::Helpers

Public Instance Methods

set_websocket_user() click to toggle source
# File lib/padrino-websockets.rb, line 6
def set_websocket_user
  session['websocket_user'] ||= SecureRandom.uuid
end