Compare commits
	
		
			2 Commits
		
	
	
		
			2da7c8a4c1
			...
			75fd09620c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 75fd09620c | |||
| 8fa8153ba6 | 
@@ -14,7 +14,7 @@ var _ Server = (*event)(nil)
 | 
				
			|||||||
type Server interface {
 | 
					type Server interface {
 | 
				
			||||||
	GinHandle(ctx *gin.Context, user any)
 | 
						GinHandle(ctx *gin.Context, user any)
 | 
				
			||||||
	HandlerFunc() mux.HandlerFunc
 | 
						HandlerFunc() mux.HandlerFunc
 | 
				
			||||||
	Push(user, name, msg string) bool
 | 
						Push(user any, name, msg string) bool
 | 
				
			||||||
	Broadcast(name, msg string)
 | 
						Broadcast(name, msg string)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -104,7 +104,7 @@ func (stream *event) HandlerFunc() mux.HandlerFunc {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (stream *event) Push(user, name, msg string) bool {
 | 
					func (stream *event) Push(user any, name, msg string) bool {
 | 
				
			||||||
	value, ok := stream.SessionList.Load(user)
 | 
						value, ok := stream.SessionList.Load(user)
 | 
				
			||||||
	if ok {
 | 
						if ok {
 | 
				
			||||||
		val := value.(chan msgChan)
 | 
							val := value.(chan msgChan)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user