function simulateOpenEvent(ws) {
  /** @suppress {visibility} suppression added to enable type checking */
  ws.readyState = NetWebSocket.ReadyState_.OPEN;
  ws.onopen();
}
Simulates the browser firing the open event for the given web socket.
@param {MockWebSocket} ws The mock web socket.
@suppress {missingProperties} suppression added to enable type checking