             result =
                 data:
                     'text/plain': message.content.text ? message.content.data
-                type:   'text'
+                type: 'text'
                 stream: message.content.name
 
         # For kernels that do not conform to the messaging standard

        content =
                code: code
                cursor_pos: cursor_pos
                detail_level : 0

        message =
                header: header

        @ioSocket.connect(address + @config.iopub_port)
        @ioSocket.subscribe('')

        @shellSocket.on 'message', @onShellMessage.bind this
        @ioSocket.on 'message', @onIOMessage.bind this

        @shellSocket.on 'connect', -> console.log 'shellSocket connected'
        @controlSocket.on 'connect', -> console.log 'controlSocket connected'
        @ioSocket.on 'connect', -> console.log 'ioSocket connected'

        try
            @shellSocket.monitor()
