This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.
JavaScript algorithmsartificial-intelligencebugbountycryptographycyber-threat-intelligencecybersecurity-projectsethical-hackinghacking-toolsmalwarenessusnetwork-monitoringnetwork-securitynmapportscannerpythonpythonprojectsthreat-intelligencevirus-scanning
Create web_socket_server.py
Abdul Wahab Junaida93eb6136329
diff --git a/Python Tools/Socket_Modules/web_socket_server.py b/Python Tools/Socket_Modules/web_socket_server.pynew file mode 100644index 0000000..de51343--- /dev/null+++ b/Python Tools/Socket_Modules/web_socket_server.py@@ -0,0 +1,19 @@+from aiohttp import web+import socketio++socket_io = socketio.AsyncServer()+app = web.Application()+socket_io.attach(app)++async def index(request):+ return web.Response(text='Hello world from socketio',content_type='text/html')++@socket_io.on('message')+def print_message(socket_id,data):+ print("Socket ID: " , socket_id)+ print("Data: " , data)++app.router.add_get('/', index)++if __name__ == '__main__':+ web.run_app(app)