laravel安装 GatewayWorker安装和应用
安装
- 下载地址:https://www.workerman.net/download/GatewayWorker.zip
- 安装到项目跟目录下
应用
-
打开安装目录,找到start_for_win.bat文件,双击打开即可
-
编写前端文件
- 文件位置随意
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script> <script type="text/javascript"> var sock = null;