0
이 링크 (https://docs.feathersjs.com/real-time/primus.html)를 따라 feathersjs-primus로 websocket 서버를 만들었습니다. 아래는 내가 사용하고 app.configure
코드는 다음과 같습니다feathersjs로 primus 서버를 설정할 때 PrimusError가 발생했습니다
app.configure(primus({
transformer: 'websocket'
}, function(primus) {
// Do something with primus
primus.use('todos::create', function(socket, done){
// Exposing a request property to services and hooks
socket.request.feathers.referrer = socket.request.referrer;
done();
});
}));
내가 오류가 아래에있어이 코드를 실행 : 내가 한
node_modules/primus/index.js:697
throw new PrimusError('The plugin is missing a client or server function', this);
^
모든 위의 링크의 지시에 따라된다. 이 오류 메시지가 표시되는 이유는 무엇입니까? 그 밖의 무엇을 내가 그리워 했느냐?
"feathers-primus": "^2.0.0",
: