BusinessWorker的部署,使用官方的聊天室源码,我去掉了web服务,修改了events,然后利用sockettool使用tcp协议链接链接gateway,onConnect和onClose都可以正常出发,但是一发数据就会提示<b>400 Bad Request</b><br>Invalid handshake data for websocket.,然后自动断开,想知道要能够出发onMessage还需要修改什么?
又仔细看了一下代码,发现是协议错了……

https://www.workerman.net/plugin/94

现在这样报错
```php
GuzzleHttp\Exception\InvalidArgumentException: You cannot use form_params and multipart at the same time. Use the form_params option if you want to send application/x-www-form-urlencoded requests, and the multipart option to send multipart/form-data requests
```
<?php
namespace app\controller;
use support\Request;
use support\Db;
class User
{
public function db(Request $request)
{
Db::connection('mongodb')->collection('test')->insert([1,2,3]);
return json(Db::connection('mongodb')->collection('test')->get());
}
}
初试webman
get()获取所有记录的对象
请问有存在返回一条记录的方法 谢谢