This commit is contained in:
Fred K. Schott
2019-11-04 19:36:34 -08:00
parent e7afd3ec76
commit c09bceb66a

View File

@@ -76,7 +76,7 @@ export function createMockRippled(port) {
mock.expectedRequests = expectedRequests;
};
mock.on('connection', function (this: CustomWebSocketServer, conn: any) {
mock.on('connection', function (this: MockedWebSocketServer, conn: any) {
if (mock.config.breakNextConnection) {
mock.config.breakNextConnection = false;
conn.terminate();
@@ -97,7 +97,7 @@ export function createMockRippled(port) {
mock.config = {};
mock.onAny(function (this: CustomWebSocketServer) {
mock.onAny(function (this: MockedWebSocketServer) {
if (this.event.indexOf('request_') !== 0) {
return;
}