A node application that passes Meducation messages onto the website via web sockets.
npm install -g coffee-script
npm install --production
Before starting Flumen, export a secret e.g:
export FLUMEN_SECRET=foobar
This is used for personal messages as part of a SHA1 hash. The client must be able to provide the same hash in order to receive personal messages. These messages are sent via rooms, keyed by user ID (which the client must also send).
Then start Flumen:
npm start
Navigate to http://localhost:3004/test and open the developer console.
To test an incoming message POST:
coffee bin/post-news-feed-item.coffee
In the browser test client, check the page for the message (it's also available in the console).
In the browser test client, enter a user ID and the hash and click 'handshake'. Then send a personal message:
coffee bin/post-notification.coffee
If allowed, the test client will receive the message both in the page and the console.
Firstly, thank you!! ❤️💖❤️
We'd love to have you involved. Please read our contributing guide for information on how to get stuck in.
This project is managed by the Meducation team.
These individuals have come up with the ideas and written the code that made this possible:
Copyright (C) 2013 New Media Education Ltd
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
A copy of the GNU Affero General Public License is available in Licence.md along with this program. If not, see http://www.gnu.org/licenses/.