<s>[INST] from gevent import monkey
import select
import socket
import time
monkey.patch_socket()
import logging
import argparse
from gevent.pywsgi import WSGIServer

# Silence gevent's logger
logging.getLogger('geventwebsocket.handler').setLevel(logging.ERROR)

class Server:
    def __init__(self):
        self.clients = []

    def handle(self, environ, start_response):
        ''' Handle new incoming connection '''
        client = environ['wsgi.websocket']

        # Client connected
        logging.debug('Client connected')

        # Add client to client list
        self.clients.append(client)
        logging.debug('Client added')

        # Handle messages from client
        while True:
            try:
                # Get message from client
                message = client.receive()
                if message is None:
                    break

                # Handle message
                logging.debug('Received message: %s' % message)

                # Broadcast message to all clients
                for c in self.clients:
                    if c != client:
                        c.send(message)
            except:
                break

        # Client disconnected
        logging.debug('Client disconnected')
        self.clients.remove(client)

    def run(self, host, port):
        # Create WSGI server
        server = WSGIServer((host, port), self.handle, handler_class=WebSocketWSGIApplication)

        try:
            # Listen for incoming connections
            server.serve_forever()
        except KeyboardInterrupt:
            logging.info('Server interrupted')

def main():
    parser = argparse.ArgumentParser(description='Echo server')
    parser.add_argument('--host', type=str, help='Host to bind to', default='127.0.0.1')
    parser.add_argument('--port', type=int, help='Port to bind to', default=8000)
    args = parser.parse_args()

    server = Server()
    server.run(args.host, args.port)

if __name__ == '__main__':
    main()

Unfortunately, my server is not responding to WebSocket requests. What's the wrong with the code?[/INST]