Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion autobahn/asyncio/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

from collections import deque

import txaio
txaio.use_asyncio()

from autobahn.wamp import websocket
from autobahn.websocket import protocol

Expand All @@ -43,7 +46,6 @@
from trollius import Future

from autobahn.websocket.types import ConnectionDeny
import txaio


__all__ = (
Expand Down
10 changes: 10 additions & 0 deletions autobahn/wamp/test/test_protocol_peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
###############################################################################

from __future__ import absolute_import
import os

# we need to select a txaio subsystem because we're importing the base
# protocol classes here for testing purposes. "normally" you'd import
# from autobahn.twisted.wamp or autobahn.asyncio.wamp explicitly.
import txaio
if os.environ.get('USE_TWISTED', False):
txaio.use_twisted()
else:
txaio.use_asyncio()

from autobahn import wamp
from autobahn.wamp import message
Expand Down