Commit 270df721 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'optimize/koishi' into 'main'

update koishi ip

See merge request mycard/Neos!279
parents 6367b81e 2de1ce8e
Pipeline #23226 passed with stages
in 11 minutes and 2 seconds
......@@ -3,7 +3,7 @@
"servers":[
{
"name":"koishi",
"ip":"koishi-r.momobako.com",
"ip":"koishi.momobako.com",
"port":"7211"
}
],
......
......@@ -17,6 +17,13 @@ export class WebSocketStream {
if (onWsOpen) {
this.ws.onopen = (e) => onWsOpen(this.ws, e);
}
this.ws.onerror = (e) => {
if (e instanceof ErrorEvent) {
alert(`websocket error: ${e.message}`);
} else {
alert(`websocket connect to ${ip} error`);
}
};
const ws = this.ws;
this.stream = new ReadableStream({
......
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