 
   me = tawk['/connection']
   if not me.id
-    me.id = random_string(16)
+    me.id = tawk.id
     me.name = name
     me.group = tawk.gids[0] or random_string(16)
     me.timeEntered = Date.now()
     me.active = true
-    me.space = space
+    me.space = tawk.space
     me.video = video
     me.audio = audio
-
-  if not tawk.janus_initialized
-    initialize_janus(me.id, me.space)
-    tawk.janus_initialized = true
 
   DIV
     id: 'tawk'

          janus.attach
            plugin: "janus.plugin.videoroom"
            error: console.error
            onlocalstream: (stream) -> recieved_stream(stream, my_id)
            success: (ph) ->
              # Join plugin as a publisher (able to both send and receive streams)
              plugin_handle = ph

###############################################################################

dom.TAWK = ->
  tawk.space = if @props.space? then @props.space else ''
  name = if @props.name? then @props.name else 'Anonymous ' + random_numbers(4)
  video = if @props.video? then @props.video else true
  audio = if @props.audio? then @props.audio else true

  if not tawk.janus_initialized
    initialize_janus(tawk.id, tawk.space)
    tawk.janus_initialized = true

  # Have to make sure we get all connections to choose
  # whether to join the first group
