     didClose: ->
         super
         try
-            @ws.close()
+            @ws.close(1000, "Normal closure", false)
         catch x
         @ws = null
         @connection = null

        @ws.removeEventListener('message', @_message_cb)
        @ws.removeEventListener('close', @_end_cb)
        try
            @ws.close()
        catch x
        @ws = null


        if @readyState isnt Transport.OPEN
            return false
        @readyState = Transport.CLOSING
        @ws.close(status, reason, false)
        return true

    didClose: ->
