aio-libs / sockjs

SockJS Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call async function based on example

jersobh opened this issue · comments

Hi there,

The example is like "def chat_msg_handler(msg, session):", so my handler cannot be "async def chat_msg_handler". So is there any way to call an async function or do I have to re-do every async function removing the "async"?

chat_msg_handler can be async function, the example is updated.