Added title bar and basic message and command input
This commit is contained in:
parent
508a04cf4c
commit
f42d6011c6
23 changed files with 399 additions and 83 deletions
|
@ -1,13 +1,19 @@
|
|||
var Reflux = require('reflux');
|
||||
|
||||
var sock = require('../socket.js')('/ws');
|
||||
|
||||
var messageActions = Reflux.createActions([
|
||||
'send',
|
||||
'add',
|
||||
'selectTab'
|
||||
]);
|
||||
|
||||
messageActions.send.preEmit = function() {
|
||||
|
||||
messageActions.send.preEmit = function(message, to, server) {
|
||||
sock.send('chat', {
|
||||
server: server,
|
||||
to: to,
|
||||
message: message
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = messageActions;
|
Loading…
Add table
Add a link
Reference in a new issue