配置开发环境和生产环境的地址
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
let ws = null;
|
||||
import { WS_URL } from "./config";
|
||||
|
||||
// WebSocket连接地址
|
||||
const WS_URL = "ws://localhost:3000";
|
||||
let ws = null;
|
||||
|
||||
// 建立WebSocket连接
|
||||
export function connectWebSocket(token, onMessage, onOpen, onClose, onError) {
|
||||
|
||||
Reference in New Issue
Block a user