var test = require('tape')
var goodbye = require('pull-goodbye')
var network = require('../../browser.js')
var _ = icebreaker

test('ws:connect',function(t){
t.plan(2)
$.get('/port',function(port){
  network.connect('ws://localhost:'+port,function(connection){
    _(
      connection,
      goodbye({source:_('hello'),sink:_.drain(function(d){
        t.equals(d,'world')
      },function(err){
        t.notOk(err)
      })},'GoodBye'),
      connection
    )
    })
  })
})



@@ -191,16 +191,36 @@
 (port)%7B%0A
+  console.log(port)%0A
   networ
@@ -274,16 +274,46 @@
 ction)%7B%0A
+    console.log('connection')%0A
     _(%0A 
@@ -388,16 +388,45 @@
 ion(d)%7B%0A
+        console.log('data');%0A
         
@@ -468,16 +468,42 @@
 n(err)%7B%0A
+        console.log(err);%0A
         

Update browser test