(
private port: number,
public handler?: MockServerHandler,
private slotTable?: any
)
| 55 | private socket?: Server; |
| 56 | |
| 57 | constructor( |
| 58 | private port: number, |
| 59 | public handler?: MockServerHandler, |
| 60 | private slotTable?: any |
| 61 | ) { |
| 62 | super(); |
| 63 | this.connect(); |
| 64 | createdMockServers.push(this); |
| 65 | } |
| 66 | |
| 67 | connect() { |
| 68 | this.socket = createServer((c) => { |