ws_server.go 650 B

1234567891011121314151617181920212223242526272829
  1. package main
  2. import (
  3. "errors"
  4. "git.swzry.com/zry/zry-go-program-framework/core"
  5. )
  6. var _ core.ISubService = (*WSServerSubSvc)(nil)
  7. type WSServerSubSvc struct {
  8. }
  9. func NewWSServerSubSvc() *WSServerSubSvc {
  10. s := &WSServerSubSvc{}
  11. return s
  12. }
  13. func (T WSServerSubSvc) Prepare(ctx *core.SubServiceContext) error {
  14. ctx.Error("currently not support websocket")
  15. return errors.New("currently not support websocket")
  16. }
  17. func (T WSServerSubSvc) Run(ctx *core.SubServiceContext) error {
  18. ctx.Error("currently not support websocket")
  19. return errors.New("currently not support websocket")
  20. }
  21. func (T WSServerSubSvc) Stop(ctx *core.SubServiceContext) {
  22. }