Getty is an asynchronous network I/O library developed in Golang. It operates on TCP, UDP, and WebSocket network protocols, providing a consistent interface EventListener. Within Getty, each connection (session) involves two separate goroutines. One handles the reading of TCP streams, UDP packets, or WebSocket packages, while the other manages the logic processing and writes responses into the network write buffer. If your logic processing might take a considerable amount of time, it's recommended to start a new logic process goroutine yourself within codec.go's (Codec)OnMessage method. Additionally, you can manage heartbeat logic within the (Codec)OnCron method in codec.go. If you're using TCP or UDP, you should send heartbeat packages yourself and then call session.go's (Session)UpdateActive method to update the session's activity timestamp. You can verify if a TCP session has timed out or not in codec.go's (Codec)OnCron method using session.go's (Session)GetActive method.

Features

  • Licensed under the Apache License
  • Code examples
  • Netty-like asynchronous network I/O library
  • You can manage heartbeat logic
  • You can verify if a TCP session has timed out or not
  • It operates on TCP, UDP, and WebSocket network protocols, providing a consistent interface EventListener
  • Within Getty, each connection (session) involves two separate goroutines

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

Apache License V2.0

Follow getty

getty Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of getty!

Additional Project Details

Programming Language

Go

Related Categories

Go JSON Software

Registered

2023-10-18