     fileprivate func sendMessage(event: String, data: Any){
         
         let msg = ["event": event, "data": data]
+        print("SENDING:")
+        print(msg)
         sendMessage(msg)
     }
     

    
    /** New ice candidate has been found. */
    public func peerConnection(_ peerConnection: RTCPeerConnection, didGenerate candidate: RTCIceCandidate){
        print(candidate.sdp)
        let candidate:[String: Any] = ["candidate":candidate.sdp,"sdpMid":candidate.sdpMid!,"sdpMLineIndex":candidate.sdpMLineIndex]
        sendPeerMessage(messageType: "candidate", payload: ["candidate":candidate])
        print("RTCPeer:RTCPeerConnectionDelegate: peer connection did generate new ICE candidate")

    private(set) var receiveMedia:[String: Any] = RTCClientConfig.defaultReceiveMedia
    public let parent: RTCClient
    fileprivate(set) public var remoteVideoTrack: RTCVideoTrack?
    fileprivate(set) public var remoteAuduoTrack: RTCAudioTrack?

    
    fileprivate var remoteVideoRenderer: RTCEAGLVideoView?
    
