1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 19:07:00 +01:00
psalm/src/Psalm/LanguageServer/ProtocolWriter.php

19 lines
390 B
PHP
Raw Normal View History

<?php
declare(strict_types = 1);
namespace Psalm\LanguageServer;
use Psalm\LanguageServer\Message;
use Sabre\Event\Promise;
interface ProtocolWriter
{
/**
* Sends a Message to the client
*
* @param Message $msg
* @return Promise Resolved when the message has been fully written out to the output stream
*/
public function write(Message $msg): Promise;
}