mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-08-07 07:16:13 +00:00
d16b7f60f3
The WebSocket support added for TrueNAS JSON-RPC 2.0 requires the phrity/websocket library to actually be available at runtime. This repo commits the vendor/ tree (CI does not run composer install), so the dependency and composer.lock must be committed for class_exists() checks in the TrueNAS app to succeed. - composer require phrity/websocket:^3.6 (resolves to 3.7.3) with lock and vendor/ committed - Fix TrueNASWebSocketClient to catch WebSocket\Exception\Exception (phrity/websocket v3 namespace) instead of the non-existent WebSocket\ConnectionException from the old textalk/websocket v1/v2 API, so connection/call failures are logged and wrapped as intended
21 lines
498 B
PHP
21 lines
498 B
PHP
<?php
|
|
|
|
/**
|
|
* Copyright (C) 2014-2026 Textalk and contributors.
|
|
* This file is part of Websocket PHP and is free software under the ISC License.
|
|
*/
|
|
|
|
namespace WebSocket\Exception;
|
|
|
|
/**
|
|
* WebSocket\Exception\ConnectionClosedException class.
|
|
* Connection is unexpectedly closed exception.
|
|
*/
|
|
class ConnectionClosedException extends Exception implements ConnectionLevelInterface
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct('Connection has unexpectedly closed');
|
|
}
|
|
}
|