slate-irc-message-stream

irc-message-stream for slate-irc

Usage no npm install needed!

<script type="module">
  import slateIrcMessageStream from 'https://cdn.skypack.dev/slate-irc-message-stream';
</script>

README

slate-irc-message-stream

A tiny Stream interface for irc-message that converts it to work with slate-irc.

Installation

npm install slate-irc-message-stream

Usage

var irc = require('slate-irc');
var SlateMessageStream = require('slate-irc-message-stream');
var net = require('net');

var stream = net.connect({
  port: 6667,
  host: 'irc.freenode.org'
});

var messageStream = new SlateMessageStream();

var client = irc(stream, messageStream);