Commit Graph

36 Commits

Author SHA1 Message Date
Ken-Håvard Lieng 3d20edd960 Move JSON encoding to conn.send() 2015-06-07 06:32:19 +02:00
Ken-Håvard Lieng c6c740e24b Make storage.User synchronous, call session.setWS earlier 2015-06-07 06:16:16 +02:00
Ken-Håvard Lieng 7d17b4b30f Set GOMAXPROCS to NumCPU, drop httprouter 2015-06-07 01:18:26 +02:00
Ken-Håvard Lieng ebdb382706 Stop creating new goroutines for irc.Connect() since it doesnt block anymore 2015-06-06 01:02:02 +02:00
Ken-Håvard Lieng adcf12e1fa Pull IRC client out 2015-06-06 00:34:13 +02:00
Ken-Håvard Lieng be695a9881 Reconnect websockets 2015-06-04 02:06:17 +02:00
Ken-Håvard Lieng c325168a20 Reconnect and retry IRC connections 2015-06-01 05:44:30 +02:00
Ken-Håvard Lieng 5cf2822c34 Store nick in Message.Nick, keep full prefix in Message.Prefix 2015-06-01 01:48:07 +02:00
Ken-Håvard Lieng 65b3aac977 Remove irc client from session when the connection dies 2015-05-31 23:23:05 +02:00
Ken-Håvard Lieng b687c13baa Pass server as parameter instead of capturing it in reconnect() 2015-05-30 01:10:29 +02:00
Ken-Håvard Lieng 61aa5880d3 Add config file, handle it with Viper, add a command to open it in an editor 2015-05-25 04:00:21 +02:00
Ken-Håvard Lieng b8a8ba2e08 Add channel topic to ChatTitle, improve TabList layout 2015-05-23 04:38:43 +02:00
Ken-Håvard Lieng 9b9bef3695 Avoid array conversion in UserList 2015-05-23 01:58:56 +02:00
Ken-Håvard Lieng 6a6aedc5da Implement getInitialState in stores 2015-05-23 00:40:16 +02:00
Ken-Håvard Lieng 6a25c1d6a5 Add GetLastMessages, log messages to nested buckets 2015-05-21 09:15:57 +02:00
Ken-Håvard Lieng a6d7403eba Everything is immutable 2015-05-20 08:14:44 +02:00
Ken-Håvard Lieng 17482ee253 Immutable channelStore 2015-05-19 06:50:43 +02:00
khlieng 11ea241b60 Immutable messages, search and selectedTab 2015-05-19 01:17:23 +02:00
khlieng 77c723344c Fix state updating in ChatTitle and UserList 2015-05-16 22:25:22 +02:00
khlieng d4d51778fb Make ChatTitle and UserList render functions pure 2015-05-16 21:43:18 +02:00
Ken-Håvard Lieng f497e248f1 Stop message handler goroutine when connection closes 2015-05-16 03:56:58 +02:00
Ken-Håvard Lieng e55760a1a5 Stop irc and websocket writer goroutines when the connection closes 2015-05-16 02:58:26 +02:00
khlieng e47cb5f0e4 Implement Last-Modified caching 2015-05-16 01:18:52 +02:00
khlieng c7faa254c5 Strip bindata path 2015-05-16 00:33:51 +02:00
Ken-Håvard Lieng 5a535cf53e Update client dependencies, embed only gzipped assets and unzip on the fly if needed 2015-05-15 07:32:32 +02:00
khlieng c4ac9f782c Insert space between timestamp and nick instead of using margin 2015-05-15 00:42:09 +02:00
khlieng 0eca6a1823 Select the previous tab or redirect to /connect when closing a tab, move some CSS from inline react styles to classes 2015-05-14 01:42:25 +02:00
khlieng 92de7cb8ef Concat css 2015-05-12 23:50:55 +02:00
khlieng 6b6a1172f9 Keep url text intact when linkifying it 2015-05-12 22:50:35 +02:00
Ken-Håvard Lieng cb4b5e4f6f Allow websocket connections from all origins 2015-05-11 05:13:35 +02:00
khlieng 7aae7685c5 Add early search prototype on the client, add leave button 2015-05-11 03:39:34 +02:00
khlieng deba58dbff Use replaceState for /connect redirects 2015-05-05 00:46:12 +02:00
khlieng d440aac023 Send null server list to new users 2015-05-04 23:52:34 +02:00
khlieng 79095154ca Add clear command and get rid of the development flag 2015-05-02 01:02:21 +02:00
khlieng d1a82a65b5 Switch to gorilla/websocket 2015-05-02 00:20:22 +02:00
khlieng e63c012aad Add cobra, move the server code into its own package 2015-05-01 22:59:46 +02:00