{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/responder/issues/198","repository_url":"https://api.github.com/repos/kennethreitz/responder","labels_url":"https://api.github.com/repos/kennethreitz/responder/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/responder/issues/198/comments","events_url":"https://api.github.com/repos/kennethreitz/responder/issues/198/events","html_url":"https://github.com/kennethreitz/responder/issues/198","id":377641286,"node_id":"MDU6SXNzdWUzNzc2NDEyODY=","number":198,"title":"Is there a recommended way / example of using websockets with responder?","user":{"login":"nickponline","id":590151,"node_id":"MDQ6VXNlcjU5MDE1MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/590151?v=4","gravatar_id":"","url":"https://api.github.com/users/nickponline","html_url":"https://github.com/nickponline","followers_url":"https://api.github.com/users/nickponline/followers","following_url":"https://api.github.com/users/nickponline/following{/other_user}","gists_url":"https://api.github.com/users/nickponline/gists{/gist_id}","starred_url":"https://api.github.com/users/nickponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickponline/subscriptions","organizations_url":"https://api.github.com/users/nickponline/orgs","repos_url":"https://api.github.com/users/nickponline/repos","events_url":"https://api.github.com/users/nickponline/events{/privacy}","received_events_url":"https://api.github.com/users/nickponline/received_events","type":"User","site_admin":false},"labels":[{"id":1084645691,"node_id":"MDU6TGFiZWwxMDg0NjQ1Njkx","url":"https://api.github.com/repos/kennethreitz/responder/labels/question","name":"question","color":"d876e3","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-11-06T00:27:14Z","updated_at":"2018-12-27T19:34:52Z","closed_at":null,"author_association":"NONE","body":"Is there a recommended way / example of using websockets with responder?"},"comment":{"url":"https://api.github.com/repos/kennethreitz/responder/issues/comments/450216272","html_url":"https://github.com/kennethreitz/responder/issues/198#issuecomment-450216272","issue_url":"https://api.github.com/repos/kennethreitz/responder/issues/198","id":450216272,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDIxNjI3Mg==","user":{"login":"paalbra","id":265215,"node_id":"MDQ6VXNlcjI2NTIxNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/265215?v=4","gravatar_id":"","url":"https://api.github.com/users/paalbra","html_url":"https://github.com/paalbra","followers_url":"https://api.github.com/users/paalbra/followers","following_url":"https://api.github.com/users/paalbra/following{/other_user}","gists_url":"https://api.github.com/users/paalbra/gists{/gist_id}","starred_url":"https://api.github.com/users/paalbra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paalbra/subscriptions","organizations_url":"https://api.github.com/users/paalbra/orgs","repos_url":"https://api.github.com/users/paalbra/repos","events_url":"https://api.github.com/users/paalbra/events{/privacy}","received_events_url":"https://api.github.com/users/paalbra/received_events","type":"User","site_admin":false},"created_at":"2018-12-27T19:34:52Z","updated_at":"2018-12-27T19:34:52Z","author_association":"NONE","body":"No, it's not the `starlette.lifespan` error. I used starlette 0.8 (to circumvent #226) and responder 1.1.2.\r\n\r\n```\r\nINFO: Started server process [32]\r\nINFO: Waiting for application startup.\r\nINFO: Uvicorn running on http://127.0.0.1:5042 (Press CTRL+C to quit)\r\nERROR: Exception in ASGI application\r\nTraceback (most recent call last):\r\n  File \"/test/responder/venv/lib/python3.6/site-packages/uvicorn/protocols/websockets/websockets_impl.py\", line 140, in run_asgi\r\n    result = await asgi(self.asgi_receive, self.asgi_send)\r\n  File \"/test/responder/venv/lib/python3.6/site-packages/responder/api.py\", line 223, in asgi\r\n    req = models.Request(scope, receive=receive, api=self)\r\n  File \"/test/responder/venv/lib/python3.6/site-packages/responder/models.py\", line 97, in __init__\r\n    self._starlette = StarletteRequest(scope, receive)\r\n  File \"/test/responder/venv/lib/python3.6/site-packages/starlette/requests.py\", line 27, in __init__\r\n    assert scope[\"type\"] == \"http\"\r\nAssertionError\r\n```"}}
{"actor":{"display_login":"paalbra"}}