mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
new: implemented optional websocket for /api/events
This commit is contained in:
parent
b243e67828
commit
5ad1a17118
4 changed files with 66 additions and 36 deletions
|
@ -33,6 +33,7 @@ func NewRestAPI(s *session.Session) *RestAPI {
|
|||
server: &http.Server{},
|
||||
quit: make(chan bool),
|
||||
useWebsocket: false,
|
||||
eventListener: s.Events.Listen(),
|
||||
upgrader: websocket.Upgrader{
|
||||
ReadBufferSize: 1024,
|
||||
WriteBufferSize: 1024,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue