From 02c4dcd6ff7112834cad50fae236335fb407208f Mon Sep 17 00:00:00 2001 From: Bryce Kahle Date: Thu, 12 Oct 2017 11:59:49 -0400 Subject: [PATCH] Use new uuid require format --- src/transport.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport.coffee b/src/transport.coffee index c9976f30..3d370ca8 100644 --- a/src/transport.coffee +++ b/src/transport.coffee @@ -5,7 +5,7 @@ # ***** END LICENSE BLOCK ***** stream = require('stream') -uuid = require('uuid') +uuidv4 = require('uuid/v4') utils = require('./utils') class Transport @@ -21,7 +21,7 @@ closeFrame = (status, reason) -> class SockJSConnection extends stream.Stream constructor: (@_session) -> - @id = uuid.v4() + @id = uuidv4() @headers = {} @prefix = @_session.prefix