<span style="background-color: rgb(56 0 213); color: #ffffff; border: none; padding: 10px 20px; text-align: left; text-decoration: none; display: inline-block; font-size: 16px; transition-duration: 0.4s; cursor: pointer; border-radius: 4px; box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);width:100%;">这里是单独启动了一个GET接口来做处理🦄:
</span>
<br>
```
@app.route('send_messages')
def trigger_send_messages():
message = request.args.get('message') # 获取消息内容
user_id = request.args.get('user_id') # 获取用户ID
socketio.emit('new_msg', message, room=user_id)
return 'Messages sent'
```
#### 这样,通过 http://localhost:5000/send_messages?message=1111&user_id=996 这种get请求的方式就能给指定的客户端发送消息了🐋🐋🐋