This commit is contained in:
laodaming 2023-08-30 18:00:26 +08:00
parent b8dbda6a4c
commit a9b8df41f7
3 changed files with 4 additions and 4 deletions

View File

@ -19,10 +19,10 @@ func (w *wsConnectItem) newAllocationProcessor(msgType constants.Websocket) allo
switch msgType {
//图片渲染
case constants.WEBSOCKET_RENDER_IMAGE:
obj = &renderProcessor{w}
obj = &renderProcessor{*w}
//刷新重连请求恢复上次连接的标识
case constants.WEBSOCKET_REQUEST_REUSE_LAST_CONNECT:
obj = &reuseConnProcessor{w}
obj = &reuseConnProcessor{*w}
default:
}

View File

@ -20,7 +20,7 @@ import (
// 渲染处理器
type renderProcessor struct {
w *wsConnectItem
w wsConnectItem
}
// 云渲染属性

View File

@ -11,7 +11,7 @@ import (
// 复用连接处理器
type reuseConnProcessor struct {
w *wsConnectItem
w wsConnectItem
}
func (r *reuseConnProcessor) allocationMessage(data []byte) {