Last change
on this file since 69 was 67, checked in by Bart Vastenhouw, 3 years ago |
Added SAOP and simplerunner to GeniusWebPython. Several minor fixes.
|
File size:
378 bytes
|
Rev | Line | |
---|
[67] | 1 | from abc import ABC, abstractmethod
|
---|
| 2 |
|
---|
| 3 | class Session(ABC):
|
---|
| 4 | '''
|
---|
| 5 | An active websocket session.
|
---|
| 6 | '''
|
---|
| 7 | @abstractmethod
|
---|
| 8 | def send(self, text: str):
|
---|
| 9 | '''
|
---|
| 10 | @param text the text to be sent into the websocket.
|
---|
| 11 | '''
|
---|
| 12 |
|
---|
| 13 | @abstractmethod
|
---|
| 14 | def close(self):
|
---|
| 15 | '''
|
---|
| 16 | close this session.
|
---|
| 17 | '''
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | |
---|
Note:
See
TracBrowser
for help on using the repository browser.