@lzpenguin/server 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -154,7 +154,7 @@ export class RiffleServer {
154
154
  }
155
155
 
156
156
  // 构建 WebSocket URL(包含 post_id 和 token)
157
- let wsUrl = `${this.url}?post_id=${this.postId}&token=${this.token}`;
157
+ let wsUrl = `wss://${this.url}/api/v1/server/ws?post_id=${this.postId}&token=${this.token}`;
158
158
 
159
159
  try {
160
160
  this.ws = new WebSocketImpl(wsUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lzpenguin/server",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Riffle 游戏服务器 WebSocket 客户端 SDK",
5
5
  "license": "ISC",
6
6
  "author": "lzpenguin",