mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
fix some typos, force unwraps and inconsistencies Motivation: Reviewing the code I found a few typos that hindered readability, some unnecessary force unwraps and inconsistencies in the codebase. Modifications: - The main file in NIOWebSocketServer now accepts command line arguments and binds to a passed in host and port like the other server examples do. - Minor typo fixes - removed one force unwrap Result: - The result of my change will bring the NIOWebSocketServer more inline with how the NIOHTTP1 and NIOChat servers examples are setup. - less force unwrapping - fewer typos [message edited by @weissi]
NIOChatServer
This sample application provides a chat server that allows multile users to speak to one another. Invoke it using one of the following syntaxes:
swift run NIOChatServer # Binds the server on ::1, port 9999.
swift run NIOChatServer 9899 # Binds the server on ::1, port 9899
swift run NIOChatServer /path/to/unix/socket # Binds the server using the given UNIX socket
swift run NIOChatServer 192.168.0.5 9899 # Binds the server on 192.168.0.5:9899