v0.5.0
Compatibility
- Requires Deno v1.x
- Uses Deno [email protected]
Importing
-
Import this latest release by using the following in your project(s):
import { Server } from "https://deno.land/x/[email protected]/mod.ts";
Updates
- feat: documentation and tutorials: https://drash.land/sockets
- feat: handle string packets
- modify: packets cannot be sent to channels that aren't opened; channels must be opened first
- modify:
server.close()
now waits for all messages to be sent before closing - modify: change
connection
event toconnect
- modify: term "message" to be "packet"
- modify:
createChannel()
toopenChannel()
- remove: binary packet support (will be re-implemented at a later time)
- remove:
onMessage()
- remove: chained
.on()
- tests: remove Drash from integration tests; use raw Deno server
- tests: use Rhum in tests
- chore: fix linting issues
- chore: add types
- chore: improve doc blocks for compatibility with doc.deno.land
- chore: Update dependencies to 0.71.0, added more tests