Basic websockets interface for node's packet module