I've a problem using angular-websocket with requirejs. It tries to load the dependency "ws" and it can't find it.
It runs all fine if i change
define(['module', 'exports', 'angular', 'ws'], factory);
to
define(['module', 'exports', 'angular'/*, 'ws'*/], factory);