
Stomp::send 메서드 사용 시 오류가 발생하는 이유는 연결이 끊어졌기 때문입니다.
오류 메시지에 Connection is closed라는 문구가 포함되어 있기 때문에, 연결이 끊어진 것으로 추정할 수 있습니다.
이러한 오류를 해결하기 위해서는 연결이 끊어지기 전에 메시지를 전송해야 합니다.
한 가지 방법은 connect 메서드와 send 메서드를 동시에 호출하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connectAndSend('/queue/test', 'Hello, World!');
또는 connect 메서드를 호출한 후 send 메서드를 호출하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
이러한 방법을 통해 연결이 끊어지기 전에 메시지를 전송할 수 있습니다.
또한, 오류 메시지를 확인하여 더 자세한 정보를 얻을 수 있습니다. 오류 메시지에 Connection is closed라는 문구가 포함되어 있기 때문에, 연결이 끊어진 것으로 추정할 수 있습니다.
이러한 오류를 해결하기 위해서는 연결을 유지하는 방법을 찾아야 합니다.
한 가지 방법은 연결을 유지하기 위한 keep-alive 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/keep-alive', 'keep-alive');
또는 연결을 유지하기 위한 heartbeat 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/heartbeat', 'heartbeat');
이러한 방법을 통해 연결을 유지할 수 있습니다.
또한, 오류 메시지를 확인하여 더 자세한 정보를 얻을 수 있습니다. 오류 메시지에 Connection is closed라는 문구가 포함되어 있기 때문에, 연결이 끊어진 것으로 추정할 수 있습니다.
이러한 오류를 해결하기 위해서는 연결을 유지하는 방법을 찾아야 합니다.
한 가지 방법은 연결을 유지하기 위한 keep-alive 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/keep-alive', 'keep-alive');
또는 연결을 유지하기 위한 heartbeat 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/heartbeat', 'heartbeat');
이러한 방법을 통해 연결을 유지할 수 있습니다.
또한, 오류 메시지를 확인하여 더 자세한 정보를 얻을 수 있습니다. 오류 메시지에 Connection is closed라는 문구가 포함되어 있기 때문에, 연결이 끊어진 것으로 추정할 수 있습니다.
이러한 오류를 해결하기 위해서는 연결을 유지하는 방법을 찾아야 합니다.
한 가지 방법은 연결을 유지하기 위한 keep-alive 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/keep-alive', 'keep-alive');
또는 연결을 유지하기 위한 heartbeat 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/heartbeat', 'heartbeat');
이러한 방법을 통해 연결을 유지할 수 있습니다.
또한, 오류 메시지를 확인하여 더 자세한 정보를 얻을 수 있습니다. 오류 메시지에 Connection is closed라는 문구가 포함되어 있기 때문에, 연결이 끊어진 것으로 추정할 수 있습니다.
이러한 오류를 해결하기 위해서는 연결을 유지하는 방법을 찾아야 합니다.
한 가지 방법은 연결을 유지하기 위한 keep-alive 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/keep-alive', 'keep-alive');
또는 연결을 유지하기 위한 heartbeat 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/heartbeat', 'heartbeat');
이러한 방법을 통해 연결을 유지할 수 있습니다.
또한, 오류 메시지를 확인하여 더 자세한 정보를 얻을 수 있습니다. 오류 메시지에 Connection is closed라는 문구가 포함되어 있기 때문에, 연결이 끊어진 것으로 추정할 수 있습니다.
이러한 오류를 해결하기 위해서는 연결을 유지하는 방법을 찾아야 합니다.
한 가지 방법은 연결을 유지하기 위한 keep-alive 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/keep-alive', 'keep-alive');
또는 연결을 유지하기 위한 heartbeat 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/heartbeat', 'heartbeat');
이러한 방법을 통해 연결을 유지할 수 있습니다.
또한, 오류 메시지를 확인하여 더 자세한 정보를 얻을 수 있습니다. 오류 메시지에 Connection is closed라는 문구가 포함되어 있기 때문에, 연결이 끊어진 것으로 추정할 수 있습니다.
이러한 오류를 해결하기 위해서는 연결을 유지하는 방법을 찾아야 합니다.
한 가지 방법은 연결을 유지하기 위한 keep-alive 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/keep-alive', 'keep-alive');
또는 연결을 유지하기 위한 heartbeat 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/heartbeat', 'heartbeat');
이러한 방법을 통해 연결을 유지할 수 있습니다.
또한, 오류 메시지를 확인하여 더 자세한 정보를 얻을 수 있습니다. 오류 메시지에 Connection is closed라는 문구가 포함되어 있기 때문에, 연결이 끊어진 것으로 추정할 수 있습니다.
이러한 오류를 해결하기 위해서는 연결을 유지하는 방법을 찾아야 합니다.
한 가지 방법은 연결을 유지하기 위한 keep-alive 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/keep-alive', 'keep-alive');
또는 연결을 유지하기 위한 heartbeat 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/heartbeat', 'heartbeat');
이러한 방법을 통해 연결을 유지할 수 있습니다.
또한, 오류 메시지를 확인하여 더 자세한 정보를 얻을 수 있습니다. 오류 메시지에 Connection is closed라는 문구가 포함되어 있기 때문에, 연결이 끊어진 것으로 추정할 수 있습니다.
이러한 오류를 해결하기 위해서는 연결을 유지하는 방법을 찾아야 합니다.
한 가지 방법은 연결을 유지하기 위한 keep-alive 메시지를 전송하는 것입니다.
#hostingforum.kr
php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection->send('/queue/keep-alive', 'keep-alive');
또는 연결을 유지하기 위한 heartbeat 메시지를 전송하는 것입니다.
```php
$connection = new Stomp('ws://localhost:61614');
$connection->connect();
$connection->send('/queue/test', 'Hello, World!');
$connection
2025-05-08 02:08