diff --git a/autobahn/asyncio/rawsocket.py b/autobahn/asyncio/rawsocket.py index 4831fadb..507884e8 100644 --- a/autobahn/asyncio/rawsocket.py +++ b/autobahn/asyncio/rawsocket.py @@ -205,6 +205,7 @@ class RawSocketProtocol(PrefixProtocol): if data: PrefixProtocol.data_received(self, data) + ERR_SERIALIZER_UNSUPPORTED = 1 ERRMAP = { diff --git a/autobahn/asyncio/test/test_asyncio_rawsocket.py b/autobahn/asyncio/test/test_asyncio_rawsocket.py index 1cde465f..d8f05cea 100644 --- a/autobahn/asyncio/test/test_asyncio_rawsocket.py +++ b/autobahn/asyncio/test/test_asyncio_rawsocket.py @@ -215,6 +215,7 @@ class Test(TestCase): self.assertTrue(server.onMessage.called) self.assertTrue(isinstance(server.onMessage.call_args[0][0], message.Abort)) + if __name__ == "__main__": # import sys;sys.argv = ['', 'Test.test_prefix'] main()