(options ServerOptions)
| 128 | } |
| 129 | |
| 130 | func NewServer(options ServerOptions) *Server { |
| 131 | return &Server{ |
| 132 | ServerOptions: options, |
| 133 | cookies: NewAppCookies(options.Hostname), |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | // Close waits for all reconnecting-pty WebSocket connections to drain before |
| 138 | // returning. |