1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-18 00:24:07 +00:00

Feathers - Primus transport

This commit is contained in:
Julien Le Coupanec 2018-02-10 03:32:51 +01:00
parent 4e4d66405d
commit 3877873002

View File

@ -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
/* *******************************************************************************************