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

  • AbstractConnectionDecorator
  • App

Interfaces

  • ComponentInterface
  • ConnectionInterface
  • MessageComponentInterface
  • MessageInterface

Constants

  • VERSION
  • Overview
  • Namespace
  • Class
  • Tree

Interface MessageInterface

Direct known implementers

Ratchet\Http\HttpRequestParser, Ratchet\MessageComponentInterface

Indirect known implementers

Ratchet\Http\HttpServer, Ratchet\Http\HttpServerInterface, Ratchet\WebSocket\WsServer, Ratchet\Http\OriginCheck, Ratchet\Http\Router, Ratchet\Server\EchoServer, Ratchet\Server\FlashPolicy, Ratchet\Server\IpBlackList, Ratchet\Session\SessionProvider, Ratchet\Wamp\ServerProtocol, Ratchet\Wamp\WampServer
Namespace: Ratchet
Located at Ratchet/MessageInterface.php
Methods summary
public
# onMessage( Ratchet\ConnectionInterface $from, string $msg )

Triggered when a client sends data through the socket

Triggered when a client sends data through the socket

Parameters

$from
Ratchet\ConnectionInterface
$from The socket/connection that sent the message to your application
$msg
string
$msg The message received

Throws

Exception
Ratchet API documentation generated by ApiGen 2.8.0