1
This commit is contained in:
@@ -39,6 +39,7 @@ export default class SocketService {
|
|||||||
|
|
||||||
|
|
||||||
const url = 'ws://127.0.0.1:7777/hello?name=cdf'
|
const url = 'ws://127.0.0.1:7777/hello?name=cdf'
|
||||||
|
//const url = 'ws://192.168.1.124:7777/hello?name=cdf'
|
||||||
this.ws = new WebSocket(url);
|
this.ws = new WebSocket(url);
|
||||||
// 连接成功的事件
|
// 连接成功的事件
|
||||||
this.ws.onopen = () => {
|
this.ws.onopen = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user