EventUtil()

Helper methods for colored output during input-events

new EventUtil()

Methods

static genSay(socket) → {function}

Generate a function for writing colored output to a socket with a newline

Parameters:
Name Type Description
socket net.Socket
Returns:
function

static genWrite(socket) → {function}

Generate a function for writing colored output to a socket

Parameters:
Name Type Description
socket net.Socket
Returns:
function