You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use your library into my project. However, I am not able to read websocket messages. As a PoC, I have used https://websocketstest.com/ site, in order to try to check ws messages. However, I have no luck so far yet.
Code
type MessageType = "CONNECTED" | "LOGIN" | "RECORD" | "END" | "connected" | "version" | "echo" | "time";
interface IMessage {
type: MessageType;
data: any;
}
it.only('test 2', function () {
cy.visit('https://websocketstest.com/')
const config: WebSocketSubjectConfig<IMessage> = {
url: "wss://websocketstest.com/service"
};
const options = {};
// Wrap the request in order to bypass the defaultCommandTimeout
// Investigating alternative solutions
cy.wrap(null, { timeout: 10000 }).then(() =>
cy.streamRequest<IMessage>(config, options).then(results => {
// debugger
expect(results).to.not.be.undefined;
})
);
})
Am I missing something?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hi there!
I am trying to use your library into my project. However, I am not able to read websocket messages. As a PoC, I have used https://websocketstest.com/ site, in order to try to check ws messages. However, I have no luck so far yet.
Code
Am I missing something?
Thanks in advance
The text was updated successfully, but these errors were encountered: