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

    Python 3.6.4 websocket-client

    Scheduled Pinned Locked Moved Official API - Evok
    5 Posts 3 Posters 3.4k Views
    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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post