Module: Wamp::Router

Defined in:
lib/wamp/router.rb,
lib/wamp/router/base.rb,
lib/wamp/router/realm.rb,
lib/wamp/router/client.rb,
lib/wamp/router/server.rb,
lib/wamp/router/connection.rb

Overview

Router

Defined Under Namespace

Classes: Authenticator, Base, Client, Connection, Realm, Server

Class Method Summary collapse

Class Method Details

.create_identifierObject



71
72
73
74
75
76
77
78
79
# File 'lib/wamp/router/server.rb', line 71

def create_identifier
  id = rand(100_000..(2**53))
  if @session_ids.include?(id)
    create_identifier
  else
    @session_ids[id] = id
    id
  end
end