v0.10.0 - Async Functions now supported in Web Sockets
The latest version of Robyn supports async functions in WebSockets now!
Usage
@websocket.on("message")
async def connect():
global i
i+=1
if i==0:
return "Whaaat??"
elif i==1:
return "Whooo??"
elif i==2:
return "*chika* *chika* Slim Shady."
elif i==3:
i= -1
return ""
@websocket.on("close")
async def close():
return "Goodbye world, from ws"
@websocket.on("connect")
async def message():
return "Hello world, from ws"
Important Note:
Async functions execute out of order. i.e. They do not block the actor in order to provide concurrent execution. However, if the order is essential for you while using async functions, try using sync functions for now or wait for a future release :D
What's Changed
- FIX : Wrong link for Test Drive by @shivaylamba in #117
- [FEAT] Open Source Contribution Templates by @shivaylamba in #118
- Release v0.9.0 Changelog by @sansyrox in #121
- Fix readme documentation by @sansyrox in #122
- Update comparison.md by @Kludex in #123
- Update comparison.md by @Kludex in #124
- Apply Python highlight on api.md by @Kludex in #126
- Add help messages and simplify 'dev' option by @Kludex in #128
- Add async support in WS by @sansyrox in #134
New Contributors
- @shivaylamba made their first contribution in #117
- @Kludex made their first contribution in #123
Full Changelog: v0.9.0...v0.10.0
Thanks
Thanks to @Kludex @awestlake87 @ShadowJonathan @shivaylamba @messense for their help(Issues/PRs) with this release. 😄