{"action":"created","issue":{"url":"https://api.github.com/repos/pusher/pusher-websocket-swift/issues/114","repository_url":"https://api.github.com/repos/pusher/pusher-websocket-swift","labels_url":"https://api.github.com/repos/pusher/pusher-websocket-swift/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/pusher/pusher-websocket-swift/issues/114/comments","events_url":"https://api.github.com/repos/pusher/pusher-websocket-swift/issues/114/events","html_url":"https://github.com/pusher/pusher-websocket-swift/issues/114","id":193381959,"number":114,"title":"Sending \"events\" or messages","user":{"login":"danielrhodes","id":120044,"avatar_url":"https://avatars.githubusercontent.com/u/120044?v=3","gravatar_id":"","url":"https://api.github.com/users/danielrhodes","html_url":"https://github.com/danielrhodes","followers_url":"https://api.github.com/users/danielrhodes/followers","following_url":"https://api.github.com/users/danielrhodes/following{/other_user}","gists_url":"https://api.github.com/users/danielrhodes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielrhodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielrhodes/subscriptions","organizations_url":"https://api.github.com/users/danielrhodes/orgs","repos_url":"https://api.github.com/users/danielrhodes/repos","events_url":"https://api.github.com/users/danielrhodes/events{/privacy}","received_events_url":"https://api.github.com/users/danielrhodes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-04T22:43:51Z","updated_at":"2016-12-05T13:30:11Z","closed_at":null,"body":"Correct me if I am wrong, but I could not find any place in the documentation where you can send messages. Is this a receive-only library?"},"comment":{"url":"https://api.github.com/repos/pusher/pusher-websocket-swift/issues/comments/264854168","html_url":"https://github.com/pusher/pusher-websocket-swift/issues/114#issuecomment-264854168","issue_url":"https://api.github.com/repos/pusher/pusher-websocket-swift/issues/114","id":264854168,"user":{"login":"hamchapman","id":2475150,"avatar_url":"https://avatars.githubusercontent.com/u/2475150?v=3","gravatar_id":"","url":"https://api.github.com/users/hamchapman","html_url":"https://github.com/hamchapman","followers_url":"https://api.github.com/users/hamchapman/followers","following_url":"https://api.github.com/users/hamchapman/following{/other_user}","gists_url":"https://api.github.com/users/hamchapman/gists{/gist_id}","starred_url":"https://api.github.com/users/hamchapman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamchapman/subscriptions","organizations_url":"https://api.github.com/users/hamchapman/orgs","repos_url":"https://api.github.com/users/hamchapman/repos","events_url":"https://api.github.com/users/hamchapman/events{/privacy}","received_events_url":"https://api.github.com/users/hamchapman/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T13:30:11Z","updated_at":"2016-12-05T13:30:11Z","body":"You can send client events (https://pusher.com/docs/client_api_guide/client_events#trigger-events) using the library. \r\n\r\nThis is done by calling `.trigger` on a private or presence channel - this is the relevant code: https://github.com/pusher/pusher-websocket-swift/blob/master/Source/PusherChannel.swift#L121-L128\r\n\r\nThis should be documented in the readme though, so I'll make sure that it gets added 👍 "}}
{"actor":{"display_login":"hamchapman"}}