   it "should make developers smile", -> expect(":-)").to.be.ok
 
 
+
+
+
   describe "LOGIN", ->
+
+    BeginOfTest = Date.now
 
     it "should allow any player to login with any name", (done) ->
       (@anyplayer = server.gcp()).on "connect", () ->

expect = require('chai').expect
sinon = require 'sinon'
io = require 'socket.io-client'
GameInstanceID = ""

#   GCP PROTOCOL SPECIFICATION   *StudioLounge Multiplayer Game*
#                         v0.3                           (final)
#   (in)formal description of digital message formats and rules, 
#   for exchanging of theese messages between computing systems,
#   defines syntax, semantics, synchronization of communication;

          expect(msg).to.equal "Try again later"
          done()





  describe "CHATTING", ->

    (@anotherplayer = server.gcp()).on "connect", () -> @emit 'login', "I am Ananda"
    (@lukas = server.gcp()).on "connect", () -> @emit 'login', "I am Lukas"

    it "should allow players to chat in the public chatroom", (done) ->
      @lukas.send "happy again :-)"
      @anyplayer.on 'message', (msg) ->
        expect(msg).to.equal "Lukas:   happy again :-)"
      @anotherplayer.on 'message', (msg) ->
        expect(msg).to.equal "Lukas:   happy again :-)"
        done()
 
    it "must not let players chat who are not logged in", (done) ->
      server.gcp().on 'connect', () ->
        @send "I did not log in but I chat anayway"
