Open yeomko22 opened 2 years ago
scope, send, receive로 구성
scope: 특정 커넥션에 대한 세부 정보를 담고 있는 딕셔너리 형태의 자료
send: 이벤트 메시지를 클라이언트에게 보내는 asycronous callable
receive: 클라이언트로부터 이벤트 메세지를 수신하는 asyncronous callable
이를 통해서 하나의 앱이 여러 incoming event를 수신하고 outgoing event를 송신할 수 있게끔 허용한다.
또한 background coroutine이 다른 작업, 가령 redis queue로 부터 오는 이벤트들을 trigger 할 수 있게끔 허용한다.
모든 이벤트는 python dict이다.
Reference
wsgi limitations
2019 frameworks
ASGI