From 387787300289538be3d0d55aa06e18509a6a8ee3 Mon Sep 17 00:00:00 2001 From: Julien Le Coupanec Date: Sat, 10 Feb 2018 03:32:51 +0100 Subject: [PATCH] Feathers - Primus transport --- backend/feathers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/feathers.js b/backend/feathers.js index 4d109d3..0e883f6 100644 --- a/backend/feathers.js +++ b/backend/feathers.js @@ -168,7 +168,6 @@ app.on('connection', connection => {}) // fired every time a new real-time conn app.on('login', (payload, info) => {}) // sent by the authentication module and also contains the connection in the info object that is passed as the second parameter - /* ******************************************************************************************* * 2. TRANSPORT: Expose a Feathers application as an API server. * ******************************************************************************************* */ @@ -229,6 +228,9 @@ app.configure(socketio({ // --> PRIMUS <-- +app.configure(primus(options)) // sets up the Primus transport with the given Primus options +app.configure(primus(options, callback)) // sets up the Primus transport with the given Primus options and calls the callback with the Primus server instance + /* *******************************************************************************************