Skip to content

v0.5.0

Compare
Choose a tag to compare
@ebebbington ebebbington released this 30 Sep 09:14
935ceaa

Compatibility

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 to connect
  • modify: term "message" to be "packet"
  • modify: createChannel() to openChannel()
  • 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