have you had any thoughts on how web sockets might fit in with mountebank? for many of our web apps, though 90% of the API is HTTP, portions of it are delivered via web sockets and we'll need to mock those up also in test cycles.
--
You received this message because you are subscribed to the Google Groups "mountebank-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mountebank-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cheers,
Nikolay
{
"protocol": "tcp",
"port": 5555,
"numberOfRequests": 0,
"mode": "text",
"requests": [],
"stubs": [
{
"responses": [
{
"is": {
"data": "somestring"
}
}
],
"predicates": []
}
],
"_links": {
"self": {
"href": "http://localhost:2525/imposters/5555"
}
}
}node websockify.js 1234 localhost:5555const WebSocket = require('ws');
const ws = new WebSocket('ws://localhost:1234');
ws.on('open', function open() {
ws.send('asdasdasd');
});
ws.on('message', function incoming(data, flags) {
console.log(unescape(data));
});somestring