• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Python 3.6.4 websocket-client

    Official EVOK API
    3
    5
    2307
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      juntiedt last edited by

      Hi Tomas,
      today I installed python 3.6.4. in order to try quart (async server replacement for Flask)
      Now runing my Flask app I get the following messag when excecuting this line :

      ws = websocket.WebSocketApp(url, on_message = self._on_message, on_error = self._on_error, on_close = self._on_close)
      

      websocket has no such attribute

      do you know a websocket module that runs on python 3.6.4?

      T 1 Reply Last reply Reply Quote 0
      • T
        tomas_hora administrators @juntiedt last edited by

        @juntiedt I have not tried ws in 3.6 yet..

        1 Reply Last reply Reply Quote 0
        • J
          juntiedt last edited by

          this python module works with evok's websocket interface on Python 3.5 and higher
          https://websockets.readthedocs.io/en/stable/intro.html
          shorter code then yours

          1 Reply Last reply Reply Quote 0
          • J
            juntiedt last edited by

            Hi Tomas,
            I have got my new async Web-Server running on a dedicated raspi connected to the evok raspi through LAN. I am using engine.io, aiohttp, websockets and redis. You can find engineio and websockets and asyncredis on github. Very good performance for a raspi 3! Try it on 188.194.138.174 and open many tabs on your browser.

            1 Reply Last reply Reply Quote 0
            • T
              TomasKnot last edited by

              Hi @juntiedt!
              That looks great, and does perform very well.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post