{"action":"closed","issue":{"url":"https://api.github.com/repos/dingwilson/MultiPeer/issues/15","repository_url":"https://api.github.com/repos/dingwilson/MultiPeer","labels_url":"https://api.github.com/repos/dingwilson/MultiPeer/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/dingwilson/MultiPeer/issues/15/comments","events_url":"https://api.github.com/repos/dingwilson/MultiPeer/issues/15/events","html_url":"https://github.com/dingwilson/MultiPeer/issues/15","id":357930971,"node_id":"MDU6SXNzdWUzNTc5MzA5NzE=","number":15,"title":"Issues with sending images","user":{"login":"benmckillop","id":39125995,"node_id":"MDQ6VXNlcjM5MTI1OTk1","avatar_url":"https://avatars2.githubusercontent.com/u/39125995?v=4","gravatar_id":"","url":"https://api.github.com/users/benmckillop","html_url":"https://github.com/benmckillop","followers_url":"https://api.github.com/users/benmckillop/followers","following_url":"https://api.github.com/users/benmckillop/following{/other_user}","gists_url":"https://api.github.com/users/benmckillop/gists{/gist_id}","starred_url":"https://api.github.com/users/benmckillop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benmckillop/subscriptions","organizations_url":"https://api.github.com/users/benmckillop/orgs","repos_url":"https://api.github.com/users/benmckillop/repos","events_url":"https://api.github.com/users/benmckillop/events{/privacy}","received_events_url":"https://api.github.com/users/benmckillop/received_events","type":"User","site_admin":false},"labels":[{"id":824493993,"node_id":"MDU6TGFiZWw4MjQ0OTM5OTM=","url":"https://api.github.com/repos/dingwilson/MultiPeer/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-09-07T06:04:42Z","updated_at":"2018-09-15T16:50:41Z","closed_at":"2018-09-15T16:50:41Z","author_association":"NONE","body":"Hi, \r\n\r\nNot sure if this is an issue or just a problem with my syntax, but when sending images, nothing is received. I can send strings no problem.\r\n\r\nStarting connection:\r\n```\r\nMultiPeer.instance.delegate = self\r\n        \r\n        MultiPeer.instance.initialize(serviceType: \"livestream\")\r\n        MultiPeer.instance.autoConnect()\r\n```\r\n\r\nSending:\r\n\r\n`        MultiPeer.instance.send(object: imageView, type: DataType.image.rawValue)`\r\n\r\n\r\nReceiving: \r\n```\r\nextension loadViewController: MultiPeerDelegate {\r\n\r\n    func multiPeer(didReceiveData data: Data, ofType type: UInt32) {\r\n        switch type {\r\n        case DataType.image.rawValue:\r\n            guard let image = data.convert() as? UIImage else { return }\r\n            print(\"___________________________image recieved!___________________________\")\r\n            break;\r\n            \r\n        default:\r\n            break;\r\n        }\r\n    }\r\n    func multiPeer(connectedDevicesChanged devices: [String]) {\r\n    }\r\n}\r\n```\r\n\r\nAny help would be appreciated!\r\n\r\nMany Thanks,\r\nBen"}}
{"actor":{"display_login":"dingwilson"}}