Pithikos / python-websocket-server

A simple fully working websocket-server in Python with no external dependencies
MIT License
1.14k stars 381 forks source link

Multiple function handlers #54

Closed kirkatexo closed 3 years ago

kirkatexo commented 6 years ago

Current implementation stores singular function handles to event listeners. What about a list instead? Methods might need to be renamed ("addfn"; "subfn"...?), but existing "setfn" behavior could replace with single-entry list to maintain backwards-compatibility.

Pithikos commented 3 years ago

The handler is just a handler for the client. So not sure how a list would be beneficial