websocket


授权协议:Apache License 2.0
原作者联系方式:hongzhidao@gmail.com
功能说明:Websocket协议支持。
- 内容介绍
使用配置方式:
- install
{nginx_dir}/configure --add-module={module_dir}/ngx_http_websocket_module && make && make install
- conf
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
server {
listen 80;
location / {
root html/websocket;
index index.html index.htm;
}
location /ws {
websocket;
}
}
}