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

  • ConnContext
  • WsConnection
  • WsServer

Interfaces

  • MessageCallableInterface
  • MessageComponentInterface
  • WsServerInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class WsConnection

Wraps ConnectionInterface objects via the decorator pattern but allows parameters to bubble through with magic methods

Ratchet\AbstractConnectionDecorator implements Ratchet\ConnectionInterface
Extended by Ratchet\WebSocket\WsConnection
Namespace: Ratchet\WebSocket
Located at Ratchet/WebSocket/WsConnection.php
Methods summary
public Ratchet\ConnectionInterface
# send( string $msg )

Send data to the connection

Send data to the connection

Parameters

$msg
string
$data

Returns

Ratchet\ConnectionInterface
public
# close( integer|Ratchet\RFC6455\Messaging\DataInterface $code = 1000 )

Parameters

$code
integer|Ratchet\RFC6455\Messaging\DataInterface
Methods inherited from Ratchet\AbstractConnectionDecorator
__construct(), __get(), __isset(), __set(), __unset(), getConnection()
Properties inherited from Ratchet\AbstractConnectionDecorator
$wrappedConn
Magic properties summary
public StdClass $WebSocket
#
Ratchet API documentation generated by ApiGen 2.8.0