autobahn.twisted.testing


Package Contents

Classes

MemoryReactorClockResolver

Combine MemoryReactor, Clock and an IReactorPluggableNameResolver

Functions

create_pumper()

return a new instance implementing IPumper

create_memory_agent(reactor, pumper, server_protocol)

return a new instance implementing IWebSocketClientAgent.

class autobahn.twisted.testing.MemoryReactorClockResolver[source]

Bases: twisted.internet.testing.MemoryReactorClock, _TestNameResolver

Combine MemoryReactor, Clock and an IReactorPluggableNameResolver together.

autobahn.twisted.testing.create_pumper()[source]

return a new instance implementing IPumper

autobahn.twisted.testing.create_memory_agent(reactor, pumper, server_protocol)[source]

return a new instance implementing IWebSocketClientAgent.

connection attempts will be satisfied by traversing the Upgrade request path starting at resource to find a WebSocketResource and then exchange data between client and server using purely in-memory buffers.