{"action":"created","issue":{"url":"https://api.github.com/repos/nestjs/docs.nestjs.com/issues/95","repository_url":"https://api.github.com/repos/nestjs/docs.nestjs.com","labels_url":"https://api.github.com/repos/nestjs/docs.nestjs.com/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/nestjs/docs.nestjs.com/issues/95/comments","events_url":"https://api.github.com/repos/nestjs/docs.nestjs.com/issues/95/events","html_url":"https://github.com/nestjs/docs.nestjs.com/issues/95","id":337681781,"node_id":"MDU6SXNzdWUzMzc2ODE3ODE=","number":95,"title":"Typo In gateways doc examples","user":{"login":"bradtaniguchi","id":10079147,"node_id":"MDQ6VXNlcjEwMDc5MTQ3","avatar_url":"https://avatars3.githubusercontent.com/u/10079147?v=4","gravatar_id":"","url":"https://api.github.com/users/bradtaniguchi","html_url":"https://github.com/bradtaniguchi","followers_url":"https://api.github.com/users/bradtaniguchi/followers","following_url":"https://api.github.com/users/bradtaniguchi/following{/other_user}","gists_url":"https://api.github.com/users/bradtaniguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/bradtaniguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradtaniguchi/subscriptions","organizations_url":"https://api.github.com/users/bradtaniguchi/orgs","repos_url":"https://api.github.com/users/bradtaniguchi/repos","events_url":"https://api.github.com/users/bradtaniguchi/events{/privacy}","received_events_url":"https://api.github.com/users/bradtaniguchi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-02T22:14:24Z","updated_at":"2018-07-04T19:30:43Z","closed_at":"2018-07-04T19:30:43Z","author_association":"NONE","body":"I found a small typo in the gateways doc examples in the Asynchronous responses section.\r\n\r\nThe code in the example is as followed:\r\n```typescript\r\n@SubscribeMessage('events')\r\nonEvent(client, data: any: Observable<WsResponse<number>> {\r\n  const event = 'events';\r\n  const response = [1, 2, 3];\r\n\r\n  return from(response).pipe(\r\n    map(data => ({ event, data })),\r\n  );\r\n}\r\n```\r\nThe onEvent function seems like its missing its closing `)` character after `data: any`.\r\n\r\nIssue within the code is found at this [line](https://github.com/nestjs/docs.nestjs.com/blob/2889295c714d264e6b9380c3d75432bc5f8a7ace/src/app/homepage/pages/websockets/gateways/gateways.component.ts#L49) \r\n\r\nthanks for all the work done on NestJs, so far loving the framework 👍 😄 "},"comment":{"url":"https://api.github.com/repos/nestjs/docs.nestjs.com/issues/comments/402547516","html_url":"https://github.com/nestjs/docs.nestjs.com/issues/95#issuecomment-402547516","issue_url":"https://api.github.com/repos/nestjs/docs.nestjs.com/issues/95","id":402547516,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjU0NzUxNg==","user":{"login":"kamilmysliwiec","id":23244943,"node_id":"MDQ6VXNlcjIzMjQ0OTQz","avatar_url":"https://avatars0.githubusercontent.com/u/23244943?v=4","gravatar_id":"","url":"https://api.github.com/users/kamilmysliwiec","html_url":"https://github.com/kamilmysliwiec","followers_url":"https://api.github.com/users/kamilmysliwiec/followers","following_url":"https://api.github.com/users/kamilmysliwiec/following{/other_user}","gists_url":"https://api.github.com/users/kamilmysliwiec/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilmysliwiec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilmysliwiec/subscriptions","organizations_url":"https://api.github.com/users/kamilmysliwiec/orgs","repos_url":"https://api.github.com/users/kamilmysliwiec/repos","events_url":"https://api.github.com/users/kamilmysliwiec/events{/privacy}","received_events_url":"https://api.github.com/users/kamilmysliwiec/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T19:30:43Z","updated_at":"2018-07-04T19:30:43Z","author_association":"MEMBER","body":"Thanks @bradtaniguchi! Fixed, will push soon"}}
{"actor":{"display_login":"kamilmysliwiec"}}