object
  method onSocketAccepted :
    Mozilla.XPCOM.serverSocket -> #Mozilla.XPCOM.transport -> unit
  method onStopListening : Mozilla.XPCOM.serverSocket -> int -> unit
end