   send: (packet) ->
     if @connected
       
-      console.log 'sending packet', packet
+      console.log '⟸', packet
       
       packet.finalize()
       
-      packet.dump()
+      console.log packet.toString()
+      console.log packet.toHex()
+      console.log packet.toASCII()
       
       @socket.send(packet.buffer)
       

# Base-class for any socket including signals and host/port management
class WrathNet.net.Socket
  
  # Imports
  ByteBuffer = WrathNet.datastructures.ByteBuffer
  
  # Creates a new socket
  constructor: ->
    

        @on.disconnect.dispatch(@, e)
      
      @socket.onmessage = (e) =>
        @buffer.clip()
        @buffer.append(e.data.byteLength).write(e.data)
        @buffer.front()
        @on.dataReceive.dispatch(@)
      
      @socket.onerror = (e) ->
