Overview

Namespaces

  • Evenement
  • None
  • PHP
  • Psr
    • Http
      • Message
  • Ratchet
    • Http
    • RFC6455
      • Handshake
      • Messaging
    • Server
    • Session
      • Serialize
      • Storage
        • Proxy
    • Wamp
    • WebSocket
  • React
    • EventLoop
      • Tick
      • Timer
    • Socket
    • Stream
  • Symfony
    • Component
      • HttpFoundation
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
      • Routing
        • Annotation
        • Exception
        • Generator
          • Dumper
        • Loader
          • DependencyInjection
        • Matcher
          • Dumper
        • Tests
          • Annotation
          • Fixtures
            • AnnotatedClasses
            • OtherAnnotatedClasses
          • Generator
            • Dumper
          • Loader
          • Matcher
            • Dumper

Classes

  • HttpRequestParser
  • HttpServer
  • OriginCheck
  • Router

Interfaces

  • HttpServerInterface

Traits

  • CloseResponseTrait
  • Overview
  • Namespace
  • Class
  • Tree

Interface HttpServerInterface

This is the interface to build a Ratchet application with. It implements the decorator pattern to build an application stack

Ratchet\Http\HttpServerInterface implements Ratchet\MessageComponentInterface

Direct known implementers

Ratchet\Http\OriginCheck, Ratchet\Http\Router, Ratchet\Session\SessionProvider, Ratchet\WebSocket\WsServer
Namespace: Ratchet\Http
Located at Ratchet/Http/HttpServerInterface.php
Methods summary
public
# onOpen( Ratchet\ConnectionInterface $conn, Psr\Http\Message\RequestInterface $request = null )

Parameters

$conn
Ratchet\ConnectionInterface
$conn
$request
Psr\Http\Message\RequestInterface
$request null is default because PHP won't let me overload; don't pass null!!!

Throws

UnexpectedValueException
if a RequestInterface is not passed

Implementation of

Ratchet\ComponentInterface::onOpen()
Methods inherited from Ratchet\MessageInterface
onMessage()
Methods inherited from Ratchet\ComponentInterface
onClose(), onError()
Ratchet API documentation generated by ApiGen 2.8.0