YAKjs ships with some basic default plugins to demonstrate how plugins work.

See How to write a plugin to get started with your plugin.

Default plugins

  • echo, sends back every message.
  • ping-pong, sends a pong for every ping.
  • broadcast, sends message to all connected clients.
  • analytics, shows how to use a store to write a counter.