新地址: http://chat.saas.bdfzer.com/
使用:sinatra,eventmachine,bootstrap,websocket
现在功能还很简陋: 发送文本 插入表情 快捷键发送 频道功能
https://github.com/kikyous/websocket_chat
欢迎 pull request
#1 楼 @dayed #2 楼 @rfei #3 楼 @cassiuschen https://github.com/kikyous/websocket_chat
欢迎 pull request
#30 楼 @cassiuschen 这个其实我是这么想的: 私有频道(比如频道名以下划线开始),因为频道名可以是一个很长的字符串,实际上已经有加密的功能了,只要不在 channels 展示,就不会有别人进去
#32 楼 @cassiuschen 现在有新建 channel 的页面啊, http://kikyous.kd.io:5000/channel 另外直接打 url 也行 http://kikyous.kd.io:5000/channel_name
部署好了,http://211.68.72.88:3360/ 更新了 ui,加入了 private channel #49 楼 @cassiuschen
这个要怎么运行?
koding 上运行 ruby -KU app.rb 只能监听 127.0.0.1
app.rb 里改了 App.run!({:host => '0.0.0.0', :port => 3360}) 没效果
@windwiny
ruby app.rb -p 0.0.0.0
https://github.com/sinatra/sinatra/blob/master/lib/sinatra/main.rb#L16
bundle install
Resolving dependencies...
Using addressable (2.2.7)
Using backports (3.3.4)
Using daemons (1.1.8)
Installing eventmachine (0.12.10)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native exte
g:/RailsInstaller/Ruby2.0.0/bin/ruby.exe extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... no
checking for rb_thread_check_ints()... yes
checking for rb_time_new()... yes
checking for windows.h... yes
checking for winsock.h... yes
checking for main() in -lkernel32... yes
checking for main() in -lrpcrt4... yes
checking for main() in -lgdi32... yes
checking for main() in -lssl... no
creating Makefile
make
generating rubyeventmachine-i386-mingw32.def
compiling binder.cpp
In file included from binder.cpp:20:0:
project.h:85:0: warning: "FD_SETSIZE" redefined
<command-line>:0:0: note: this is the location of the previous definition
compiling cmain.cpp
In file included from cmain.cpp:20:0:
project.h:85:0: warning: "FD_SETSIZE" redefined
<command-line>:0:0: note: this is the location of the previous definition
cmain.cpp: In function 'int evma_send_file_data_to_connection(long unsigned int, const char*)':
cmain.cpp:752:6: error: 'fstati64' was not declared in this scope
make: *** [cmain.o] Error 1
win7 上安装不上 eventmachine
用 gem install eventmachine --pre 可以安装成功,但是 bundle install 还是显示
Installing eventmachine (0.12.10)