                 senderId: senderId
 
             senderConn.on 'message', (message) =>
-                console.log "Receive from sender ", message;
+                Log.i "Receive from sender ", message;
                 @rxconn?.send JSON.stringify
                     type: 'message'
                     senderId: senderId

# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
#    limitations under the License.
#

class Channel


                @rxconn?.send JSON.stringify
                    type: 'senderDisconnected'
                    senderId: senderId
                @_removeSenderConn senderId
        else
            senderConn.close()

    _closeSenders: ->
        for senderId, txconn of @txconn
            Log.i 'closing sender ' + senderId
            txconn.close()
        @txconn = {}

    _removeSenderConn: (senderId) ->
        delete @txconn[senderId]

    _respReceiverError: (message) ->
        @rxconn.send JSON.stringify
            type: 'error'
            message: message
