InnerWorld InnerWorld - 1 year ago 514
Node.js Question

import using system.js

I am trying to include to Aurelia framework project
I have installed sockets by:

jspm install

then, I would like to import:

import {io} from "";

And the results is:

GET http://localhost:9000/jspm_packages/npm/ 404 (Not Found)

Where is the problem? Why is there a reference to
and not to

Answer Source

On the client side (Aurelia), you should use the client

import io from '';

var socket = io('http://localhost:9000');
socket.emit('news', { hello: 'world' });
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download