runtime/WampClient.py
changeset 1667 cefc9219bb48
parent 1511 91538d0c242c
child 1736 7e61baa047f0
equal deleted inserted replaced
1666:d3603b5a1cbc 1667:cefc9219bb48
     1 #!/usr/bin/env python
     1 #!/usr/bin/env python
     2 # -*- coding: utf-8 -*-
     2 # -*- coding: utf-8 -*-
     3 
     3 
     4 # This file is part of Beremiz, a Integrated Development Environment for
     4 # This file is part of Beremiz runtime.
     5 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival.
       
     6 #
     5 #
     7 # Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD
     6 # Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD
     8 #
     7 #
     9 # See COPYING file for copyrights details.
     8 # See COPYING.Runtime file for copyrights details.
    10 #
     9 #
    11 # This program is free software; you can redistribute it and/or
    10 # This library is free software; you can redistribute it and/or
    12 # modify it under the terms of the GNU General Public License
    11 # modify it under the terms of the GNU Lesser General Public
    13 # as published by the Free Software Foundation; either version 2
    12 # License as published by the Free Software Foundation; either
    14 # of the License, or (at your option) any later version.
    13 # version 2.1 of the License, or (at your option) any later version.
    15 #
    14 
    16 # This program is distributed in the hope that it will be useful,
    15 # This library is distributed in the hope that it will be useful,
    17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    19 # GNU General Public License for more details.
    18 # Lesser General Public License for more details.
    20 #
    19 
    21 # You should have received a copy of the GNU General Public License
    20 # You should have received a copy of the GNU Lesser General Public
    22 # along with this program; if not, write to the Free Software
    21 # License along with this library; if not, write to the Free Software
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    24 
    23 
    25 import sys
    24 import sys
    26 #from twisted.python import log
    25 #from twisted.python import log
    27 from autobahn.twisted import wamp
    26 from autobahn.twisted import wamp
    28 from autobahn.twisted.websocket import WampWebSocketClientFactory, connectWS
    27 from autobahn.twisted.websocket import WampWebSocketClientFactory, connectWS