fix: use hoppscotch's realtime echo servers - resolved #1913
This commit is contained in:
@@ -242,7 +242,7 @@ export default defineComponent({
|
|||||||
return {
|
return {
|
||||||
// default version is set to v4
|
// default version is set to v4
|
||||||
clientVersion: "v4",
|
clientVersion: "v4",
|
||||||
url: "wss://main-daxrc78qyb411dls-gtw.qovery.io",
|
url: "wss://hoppscotch-socketio.herokuapp.com",
|
||||||
path: "/socket.io",
|
path: "/socket.io",
|
||||||
isUrlValid: true,
|
isUrlValid: true,
|
||||||
connectingState: false,
|
connectingState: false,
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ export default defineComponent({
|
|||||||
return {
|
return {
|
||||||
connectionState: false,
|
connectionState: false,
|
||||||
connectingState: false,
|
connectingState: false,
|
||||||
url: "wss://echo.websocket.org",
|
url: "wss://hoppscotch-websocket.herokuapp.com",
|
||||||
isUrlValid: true,
|
isUrlValid: true,
|
||||||
socket: null,
|
socket: null,
|
||||||
communication: {
|
communication: {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ describe("wsValid", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test("returns true for valid URL with Hostname", () => {
|
test("returns true for valid URL with Hostname", () => {
|
||||||
expect(wsValid("wss://echo.websocket.org/")).toBe(true)
|
expect(wsValid("wss://hoppscotch-websocket.herokuapp.com/")).toBe(true)
|
||||||
expect(wsValid("wss://echo.websocket.org")).toBe(true)
|
expect(wsValid("wss://hoppscotch-websocket.herokuapp.com")).toBe(true)
|
||||||
})
|
})
|
||||||
|
|
||||||
test("returns false for invalid URL with IP address", () => {
|
test("returns false for invalid URL with IP address", () => {
|
||||||
@@ -29,8 +29,8 @@ describe("wsValid", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test("returns true for wss protocol URLs", () => {
|
test("returns true for wss protocol URLs", () => {
|
||||||
expect(wsValid("wss://echo.websocket.org/")).toBe(true)
|
expect(wsValid("wss://hoppscotch-websocket.herokuapp.com/")).toBe(true)
|
||||||
expect(wsValid("wss://echo.websocket.org")).toBe(true)
|
expect(wsValid("wss://hoppscotch-websocket.herokuapp.com")).toBe(true)
|
||||||
expect(wsValid("wss://174.129.224.73/")).toBe(true)
|
expect(wsValid("wss://174.129.224.73/")).toBe(true)
|
||||||
expect(wsValid("wss://174.129.224.73")).toBe(true)
|
expect(wsValid("wss://174.129.224.73")).toBe(true)
|
||||||
})
|
})
|
||||||
@@ -65,8 +65,8 @@ describe("httpValid", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test("returns false for non-http(s) protocol URLs", () => {
|
test("returns false for non-http(s) protocol URLs", () => {
|
||||||
expect(httpValid("wss://echo.websocket.org/")).toBe(false)
|
expect(httpValid("wss://hoppscotch-websocket.herokuapp.com/")).toBe(false)
|
||||||
expect(httpValid("wss://echo.websocket.org")).toBe(false)
|
expect(httpValid("wss://hoppscotch-websocket.herokuapp.com")).toBe(false)
|
||||||
expect(httpValid("wss://174.129.224.73/")).toBe(false)
|
expect(httpValid("wss://174.129.224.73/")).toBe(false)
|
||||||
expect(httpValid("wss://174.129.224.73")).toBe(false)
|
expect(httpValid("wss://174.129.224.73")).toBe(false)
|
||||||
})
|
})
|
||||||
@@ -129,8 +129,10 @@ describe("socketioValid", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test("returns true for wss protocol URLs", () => {
|
test("returns true for wss protocol URLs", () => {
|
||||||
expect(socketioValid("wss://echo.websocket.org/")).toBe(true)
|
expect(socketioValid("wss://hoppscotch-websocket.herokuapp.com/")).toBe(
|
||||||
expect(socketioValid("wss://echo.websocket.org")).toBe(true)
|
true
|
||||||
|
)
|
||||||
|
expect(socketioValid("wss://hoppscotch-websocket.herokuapp.com")).toBe(true)
|
||||||
expect(socketioValid("wss://174.129.224.73/")).toBe(true)
|
expect(socketioValid("wss://174.129.224.73/")).toBe(true)
|
||||||
expect(socketioValid("wss://174.129.224.73")).toBe(true)
|
expect(socketioValid("wss://174.129.224.73")).toBe(true)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user