Commit 9922df98 authored by Chunchi Che's avatar Chunchi Che

setup srvpro connection

parent 65b053c2
Pipeline #26767 passed with stages
in 9 minutes and 46 seconds
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"version": 4960, "version": 4960,
"servers": [{ "servers": [{
"name": "koishi", "name": "koishi",
"ip": "koishi.momobako.com", "ip": "127.0.0.1",
"port": "7211" "port": "8080"
}, },
{ {
"name": "mycard-athletic", "name": "mycard-athletic",
......
...@@ -13,7 +13,7 @@ export class WebSocketStream { ...@@ -13,7 +13,7 @@ export class WebSocketStream {
stream: ReadableStream; stream: ReadableStream;
constructor(ip: string, onWsOpen?: (ws: WebSocket, ev: Event) => any) { constructor(ip: string, onWsOpen?: (ws: WebSocket, ev: Event) => any) {
this.ws = new WebSocket("wss://" + ip); this.ws = new WebSocket("ws://" + ip);
if (onWsOpen) { if (onWsOpen) {
this.ws.onopen = (e) => onWsOpen(this.ws, e); this.ws.onopen = (e) => onWsOpen(this.ws, e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment