mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-12-18 16:41:58 +00:00
Feathers - Primus transport
This commit is contained in:
parent
4e4d66405d
commit
3877873002
@ -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
|
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.
|
* 2. TRANSPORT: Expose a Feathers application as an API server.
|
||||||
* ******************************************************************************************* */
|
* ******************************************************************************************* */
|
||||||
@ -229,6 +228,9 @@ app.configure(socketio({
|
|||||||
|
|
||||||
// --> PRIMUS <--
|
// --> 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* *******************************************************************************************
|
/* *******************************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user